Page 8 of 13

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 12:44 pm
by sicilianquake87
Vinvin wrote:
Xann wrote:...
I have been working on a new GPL engine: Senpai.
Where this name come from ?
Japanese?

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 12:47 pm
by PK
IIRC senpai = student, sensei = teacher, master.

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 12:51 pm
by velmarin
Very Thanks, Fabien.

Compiled by Intel Compiler.
http://www.talkchess.com/forum/viewtopi ... 330#562330

Readme.txt
Senpai has a known issue on Windows. The hash table appears to be 50% full at most. We have been unable to reproduce this problem on either OS X or Linux, using either GCC or Clang. So there is a possibility (though by no means certain or even probable) that it is a compatibility problem with MinGW. We haven't found any Windows programmer with Visual Studio or the Intel compiler, maybe this would fix it?

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 1:13 pm
by sicilianquake87
PK wrote:IIRC senpai = student, sensei = teacher, master.
In mangas is used to describe an older fellow/equal.

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 1:19 pm
by Adam Hair
PK wrote:IIRC senpai = student, sensei = teacher, master.
senpai = mentor or senior

http://en.wikipedia.org/wiki/Senpai

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 2:38 pm
by michiguel
lucasart wrote:
syzygy wrote: To compile on and for Linux I had to add -pthread (or it aborts with "terminate called after throwing an instance of 'std::system_error'"):

Code: Select all

g++ -pthread -std=c++11 -O3 -finline-functions -funroll-all-loops -fno-rtti -msse4.2 -o senpai_10 senpai_10.cpp
Doesn't work for me. It compiles w/o errors, but segfaults:

Code: Select all

$ g++ -pthread -std=c++11 -O3 -fno-rtti -msse4.2 -o senpai_10
$ ./senpai_10 
Segmentation fault (core dumped)
I'm using gcc 4.8.1 on Ubuntu 13.10. All very recent stuff. :roll:
Is the binary in the distribution working?

It works for me with
g++-4.8 -static-libstdc++ -std=c++11 -fno-rtti -pthread -O3 -funroll-loops -fstrict-aliasing -march=native -mpopcnt senpai_10.cpp -o senpai

Miguel

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 2:52 pm
by Adam Hair
michiguel wrote:
lucasart wrote:
syzygy wrote: To compile on and for Linux I had to add -pthread (or it aborts with "terminate called after throwing an instance of 'std::system_error'"):

Code: Select all

g++ -pthread -std=c++11 -O3 -finline-functions -funroll-all-loops -fno-rtti -msse4.2 -o senpai_10 senpai_10.cpp
Doesn't work for me. It compiles w/o errors, but segfaults:

Code: Select all

$ g++ -pthread -std=c++11 -O3 -fno-rtti -msse4.2 -o senpai_10
$ ./senpai_10 
Segmentation fault (core dumped)
I'm using gcc 4.8.1 on Ubuntu 13.10. All very recent stuff. :roll:
Is the binary in the distribution working?

It works for me with
g++-4.8 -static-libstdc++ -std=c++11 -fno-rtti -pthread -O3 -funroll-loops -fstrict-aliasing -march=native -mpopcnt senpai_10.cpp -o senpai

Miguel
Lucas said in a T&M subforum post that the distributed binary works for him.

By the way, Ronald's method works for me. I am using gcc 4.8.1 and Linux Mint 15 (Ubuntu 13.04).

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 3:01 pm
by michiguel
Adam Hair wrote:
michiguel wrote:
lucasart wrote:
syzygy wrote: To compile on and for Linux I had to add -pthread (or it aborts with "terminate called after throwing an instance of 'std::system_error'"):

Code: Select all

g++ -pthread -std=c++11 -O3 -finline-functions -funroll-all-loops -fno-rtti -msse4.2 -o senpai_10 senpai_10.cpp
Doesn't work for me. It compiles w/o errors, but segfaults:

Code: Select all

$ g++ -pthread -std=c++11 -O3 -fno-rtti -msse4.2 -o senpai_10
$ ./senpai_10 
Segmentation fault (core dumped)
I'm using gcc 4.8.1 on Ubuntu 13.10. All very recent stuff. :roll:
Is the binary in the distribution working?

It works for me with
g++-4.8 -static-libstdc++ -std=c++11 -fno-rtti -pthread -O3 -funroll-loops -fstrict-aliasing -march=native -mpopcnt senpai_10.cpp -o senpai

Miguel
Lucas said in a T&M subforum post that the distributed binary works for him.

By the way, Ronald's method works for me. I am using gcc 4.8.1 and Linux Mint 15 (Ubuntu 13.04).
The segfault and the likes are problems related to c++11 and not having the proper libraries present or linked. I had worse issues with Texel until I modified Makefile including -static-libstdc++ because -static does not work for g++. That is really frustrating if you do not know that little "detail". BTW, the one in the distribution is pgo compiled, so it is faster than the plain compile I suggested above. So, if the one in the distributino works, that line I suggest must work since it is how it was obtained.

Miguel

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 5:28 pm
by Steve B
Hi Fabien

hows that Novag Sapphire II holding up?
:P

Phoenix Resurrection Fruit 2005 WC Regards
Steve

Re: Senpai 1.0 (new engine)

Posted: Tue Mar 18, 2014 6:11 pm
by Guenther
Xann wrote:Hi Mark!

I don't smoke, but I do computer chess.
I tried to quit but ... it's not easy.
Say NO to computer chess ;)
I hope this won't awake my dormant virus again.
At least I thought I am semi-immune meanwhile??
WTF... welcome back Fabien!

Guenther