Cinnamon 2.3

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

geko
Posts: 36
Joined: Fri Sep 06, 2013 11:20 am
Location: Italy
Full name: Giuseppe Cannella

Re: Cinnamon 2.3

Post by geko »

Thanks Gabor, but the problem is on Hash not on book, I fixed it, can you do a test on version 2.3.2 ?
http:// cinnamonchess.altervista.org/download/tmp/cinnamon2.3.2.exe

Giuseppe
Gabor Szots
Posts: 1362
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Cinnamon 2.3

Post by Gabor Szots »

geko wrote: Fri Oct 30, 2020 2:04 pm Thanks Gabor, but the problem is on Hash not on book, I fixed it, can you do a test on version 2.3.2 ?
http:// cinnamonchess.altervista.org/download/tmp/cinnamon2.3.2.exe

Giuseppe
Hi Giuseppe,

It seems the problem has gone.
Gabor Szots
CCRL testing group
thunderstruck
Posts: 50
Joined: Tue Jul 19, 2016 10:19 am

Re: Cinnamon 2.3

Post by thunderstruck »

Hi Giuseppe,

What is the maximum size of HASH?
My system has 32 GB ram.
When I type uci from command line in linux :

uci
id name Cinnamon 2.3.2
id author Giuseppe Cannella
option name Hash type spin default 64 min 1 max 131071
...

So theoretically 131071 MB(128 GB).
Engine crashes immediately when using 2 GB hash or more on my system(Cutechess GUI).
Can you check this?
In version 2.2a engine works with 2 GB hash.

Kind regards,

Antonio
geko
Posts: 36
Joined: Fri Sep 06, 2013 11:20 am
Location: Italy
Full name: Giuseppe Cannella

Re: Cinnamon 2.3

Post by geko »

thunderstruck wrote: Sat Oct 31, 2020 8:17 am Engine crashes immediately when using 2 GB hash or more on my system(Cutechess GUI).
Can you check this?
yes Antonio, the engine crashes if set 2 GB hash or more, I fixed it in version 2.3.3 at http://cinnamonchess.altervista.org
thanks
Giuseppe
OliverBr
Posts: 725
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Cinnamon 2.3

Post by OliverBr »

geko wrote: Mon Oct 19, 2020 5:41 pm Hi all I'm the author, the gain in terms of elo is almost zero at least for Cinnamon, the advantage is that the code is shorter.
Hi, this is a very nice and interesting project.

I would like to add Cinnamon to my "list of unix engines", but there is still an error on MacOSX/clang, which is very easily solved by removing

Code: Select all

-static-libgcc
from the libs in Makefile.
If not this error appears:

Code: Select all

make cinnamon64-BMI2 
/Library/Developer/CommandLineTools/usr/bin/make ARC=" -mbmi2 -DUSE_BMI2 " cinnamon64-modern-INTEL
/Library/Developer/CommandLineTools/usr/bin/make ARC="-mbmi2 -DUSE_BMI2  -msse4.2 -march=corei7 " cinnamon64-modern
/Library/Developer/CommandLineTools/usr/bin/make ARC="-mbmi2 -DUSE_BMI2  -msse4.2 -march=corei7  -DHAS_POPCNT -mpopcnt -msse3 -DHAS_POPCNT -DHAS_BSF " cinnamon64-generic
/Library/Developer/CommandLineTools/usr/bin/make -j LIBS="-static-libgcc -static-libstdc++ -lpthread lib/OSX/64/libgtb.a" ARC="-mbmi2 -DUSE_BMI2  -msse4.2 -march=corei7  -DHAS_POPCNT -mpopcnt -msse3 -DHAS_POPCNT -DHAS_BSF  -DHAS_64BIT -m64" build
/Library/Developer/CommandLineTools/usr/bin/make EXE="cinnamon" CFLAGS=" -std=c++11 -DDLOG_LEVEL=_FATAL -Wall -Ofast -DNDEBUG -fsigned-char -fno-exceptions -fno-rtti -funroll-loops " all
g++ -mbmi2 -DUSE_BMI2  -msse4.2 -march=corei7  -DHAS_POPCNT -mpopcnt -msse3 -DHAS_POPCNT -DHAS_BSF  -DHAS_64BIT -m64 -std=c++11 -DDLOG_LEVEL=_FATAL -Wall -Ofast -DNDEBUG -fsigned-char -fno-exceptions -fno-rtti -funroll-loops  -o cinnamon main.o test.o ChessBoard.o board.o GenMoves.o WrapperCinnamon.o Bitboard.o Timer.o Eval.o IniFile.o String.o IterativeDeeping.o Perft.o PerftThread.o Search.o SearchManager.o Hash.o Uci.o OpenBook.o GTB.o SYZYGY.o tbprobe.o -static-libgcc -static-libstdc++ -lpthread lib/OSX/64/libgtb.a
clang: error: unsupported option '-static-libgcc'
make[5]: *** [all] Error 1
make[4]: *** [build] Error 2
make[3]: *** [cinnamon64-generic] Error 2
make[2]: *** [cinnamon64-modern] Error 2
make[1]: *** [cinnamon64-modern-INTEL] Error 2
make: *** [cinnamon64-BMI2] Error 2
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
geko
Posts: 36
Joined: Fri Sep 06, 2013 11:20 am
Location: Italy
Full name: Giuseppe Cannella

Re: Cinnamon 2.3

Post by geko »

Hi OliverBr, I've used used gcc
make cinnamon64-modern-INTEL COMP=g++
anyway you can modify the Makefile as you wish.
OliverBr
Posts: 725
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Cinnamon 2.3

Post by OliverBr »

geko wrote: Mon Nov 02, 2020 9:26 am Hi OliverBr, I've used used gcc
make cinnamon64-modern-INTEL COMP=g++
anyway you can modify the Makefile as you wish.
Hi, of course I can modify the Makefile locally, but I think it should be modified in your repository, too.
So it compiles on MacOSX out-of-the-box, your Makefile does already have an own block for OSX :)

PS: I am creating a list with stable open source engines which compile easily on Linux and MacOSX.
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
geko
Posts: 36
Joined: Fri Sep 06, 2013 11:20 am
Location: Italy
Full name: Giuseppe Cannella

Re: Cinnamon 2.3

Post by geko »

OliverBr wrote: Mon Nov 02, 2020 9:55 pm Hi, of course I can modify the Makefile locally, but I think it should be modified in your repository, too.
So it compiles on MacOSX out-of-the-box, your Makefile does already have an own block for OSX :)

PS: I am creating a list with stable open source engines which compile easily on Linux and MacOSX.
Ok, I removed -static-libgcc and pushed on github
thanks
Giuseppe
OliverBr
Posts: 725
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Cinnamon 2.3

Post by OliverBr »

geko wrote: Tue Nov 03, 2020 11:30 am Ok, I removed -static-libgcc and pushed on github
thanks
Giuseppe
This is great. Your engine is now 100% Linux/MacOSX conform and stable. There are not many of them. I checked many hundreds and found only about 40 so far.
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
Gabor Szots
Posts: 1362
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: Cinnamon 2.3

Post by Gabor Szots »

geko wrote: Sat Oct 31, 2020 12:49 pm
thunderstruck wrote: Sat Oct 31, 2020 8:17 am Engine crashes immediately when using 2 GB hash or more on my system(Cutechess GUI).
Can you check this?
yes Antonio, the engine crashes if set 2 GB hash or more, I fixed it in version 2.3.3 at http://cinnamonchess.altervista.org
thanks
Giuseppe
Version 2.3.3 forfeited time 27 times out of 320 games under Arena. Version 2.3 ran perfectly.

I intended to combine 2.3 and 2.3.3 results but now I am not sure what to do.
Gabor Szots
CCRL testing group