New engine: Caissa

Questions and comments related to CCRL testing study
User avatar
Graham Banks
Posts: 26916
Joined: Sun Dec 18, 2005 5:47 pm
Sign-up code: 0
Location: Auckland, NZ

Re: New engine: Caissa

Post by Graham Banks »

Witek902 wrote: Mon Jun 19, 2023 4:38 pm
Graham Banks wrote: Mon Jun 19, 2023 4:10 pm Try it in ChessGUI, which is what I use for my testing.
Where can I download it from?
https://kirill-kryukov.com/chess/discus ... p?id=52109
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

I don't know, for me it looks like ChessGUI bug.

The options are properly reported:

Code: Select all

GetPrivateProfileString() no value for Host in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for User in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for RemoteFolder in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for Proxy in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for Host in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for User in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for RemoteFolder in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for Proxy in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
 ==== LaunchChessEngine() ====
Processor is NOT Intel.
Computer Speed = 10 MHz.
Total Physical Memory = 32671 MB.
Total Available Memory = 22501 MB.
Total Available Disk Space = 1261841 MB.
 ======================================================= 
Now in EraseInputBuffers().
Now in MakeTimeControlString() at Time0000000004130265

LaunchChessEngine() succeeded for 
 is playing black.
 ================ SendFirstCommands(), nProtocol = 1, EngineCodeHex = 00000020 ====
SendFirstCommands UCI
SendToEng7Time 0000000004130296 : Eng07 () -> uci
.
Scheduling StartEngineTimerEvent() for  at 0000000004130296.
Waiting for .
Eng07 () <- Caissa 1.9 (AVX2/BMI2) by Michal Witanowski
Cancelling StartEngineTimerEvent() for  at 0000000004142062.
Eng07 () <- info string Loaded neural network: C:\Users\Michal\DEV\Caissa\Releases\Caissa_1.9/eval-13.pnn
Eng07 () <- id name Caissa 1.9 (AVX2/BMI2)
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- id author Michal Witanowski
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name Hash type spin default 256 min 1 max 1048576
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name MultiPV type spin default 1 min 1 max 280
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name MoveOverhead type spin default 10 min 0 max 10000
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name Threads type spin default 1 min 1 max 1024
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name Ponder type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name EvalFile type string default eval-13.pnn
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name SyzygyPath type string default <empty>
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name SyzygyProbeLimit type spin default 7 min 4 max 7
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UCI_AnalyseMode type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UCI_Chess960 type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UCI_ShowWDL type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UseSAN type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name ColorConsoleOutput type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- uciok
Now in EndChildProcess() at Time0000000004142343 to kill Caissa 1.9 (AVX2/BMI2).

!!! Disk Space !!! (1323136487424 Bytes free)
SendToEng7Time 0000000004142453 : Eng07 (Caissa 1.9 (AVX2/BMI2)) -> stop
.
SendToEng7Time 0000000004142453 : Eng07 (Caissa 1.9 (AVX2/BMI2)) -> quit
.
DestroyChildProcess(Eng07 = Caissa 1.9 (AVX2/BMI2)) is already dead.
And at the end ChessGUI decides to just kill the process with no reason.
The options listed by 1.8 and 1.9 are almost identical.
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
User avatar
Graham Banks
Posts: 26916
Joined: Sun Dec 18, 2005 5:47 pm
Sign-up code: 0
Location: Auckland, NZ

Re: New engine: Caissa

Post by Graham Banks »

Witek902 wrote: Tue Jun 20, 2023 10:48 am I don't know, for me it looks like ChessGUI bug.

The options are properly reported:

Code: Select all

GetPrivateProfileString() no value for Host in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for User in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for RemoteFolder in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for Proxy in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for Host in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for User in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for RemoteFolder in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
GetPrivateProfileString() no value for Proxy in Ftp (D:\CHESS\TOOLS\ChessGUI 0.245m\GUI_DATA\ChsGUI_Ini.INI), nResult = 0, OutStr = 
 ==== LaunchChessEngine() ====
Processor is NOT Intel.
Computer Speed = 10 MHz.
Total Physical Memory = 32671 MB.
Total Available Memory = 22501 MB.
Total Available Disk Space = 1261841 MB.
 ======================================================= 
Now in EraseInputBuffers().
Now in MakeTimeControlString() at Time0000000004130265

LaunchChessEngine() succeeded for 
 is playing black.
 ================ SendFirstCommands(), nProtocol = 1, EngineCodeHex = 00000020 ====
SendFirstCommands UCI
SendToEng7Time 0000000004130296 : Eng07 () -> uci
.
Scheduling StartEngineTimerEvent() for  at 0000000004130296.
Waiting for .
Eng07 () <- Caissa 1.9 (AVX2/BMI2) by Michal Witanowski
Cancelling StartEngineTimerEvent() for  at 0000000004142062.
Eng07 () <- info string Loaded neural network: C:\Users\Michal\DEV\Caissa\Releases\Caissa_1.9/eval-13.pnn
Eng07 () <- id name Caissa 1.9 (AVX2/BMI2)
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- id author Michal Witanowski
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name Hash type spin default 256 min 1 max 1048576
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name MultiPV type spin default 1 min 1 max 280
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name MoveOverhead type spin default 10 min 0 max 10000
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name Threads type spin default 1 min 1 max 1024
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name Ponder type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name EvalFile type string default eval-13.pnn
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name SyzygyPath type string default <empty>
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name SyzygyProbeLimit type spin default 7 min 4 max 7
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UCI_AnalyseMode type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UCI_Chess960 type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UCI_ShowWDL type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name UseSAN type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- option name ColorConsoleOutput type check default false
Eng07 (Caissa 1.9 (AVX2/BMI2)) <- uciok
Now in EndChildProcess() at Time0000000004142343 to kill Caissa 1.9 (AVX2/BMI2).

!!! Disk Space !!! (1323136487424 Bytes free)
SendToEng7Time 0000000004142453 : Eng07 (Caissa 1.9 (AVX2/BMI2)) -> stop
.
SendToEng7Time 0000000004142453 : Eng07 (Caissa 1.9 (AVX2/BMI2)) -> quit
.
DestroyChildProcess(Eng07 = Caissa 1.9 (AVX2/BMI2)) is already dead.
And at the end ChessGUI decides to just kill the process with no reason.
The options listed by 1.8 and 1.9 are almost identical.
Odd, because the previous versions have been fine under ChessGUI.
User avatar
Gabor Szots
Posts: 12848
Joined: Sat Dec 09, 2006 6:30 am
Sign-up code: 10159
Location: Szentendre, Hungary

Re: New engine: Caissa

Post by Gabor Szots »

Witek902 wrote: Tue Jun 20, 2023 10:48 amAnd at the end ChessGUI decides to just kill the process with no reason.
The options listed by 1.8 and 1.9 are almost identical.
Version 1.9 is the first one without the Gaviota TB options. And it has a new option (show WDL).

Maybe that is the problem. Graham, have you installed v1.9 independently or by duplicating v1.8? What if you delete them then do a clean install of 1.9?

Sorry to bother if that is nonsense.
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

I reverted all UCI options to version 1.8 so that "uci" command output is exactly the same as in version 1.8 and I'm still getting the same behavior (hang on Edit Engine Parameters leading to engine kill). I'm out of ideas...
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
User avatar
Gabor Szots
Posts: 12848
Joined: Sat Dec 09, 2006 6:30 am
Sign-up code: 10159
Location: Szentendre, Hungary

Re: New engine: Caissa

Post by Gabor Szots »

When I start the engine these lines are displayed.
AdjustTokenPrivileges failed, error code: 1300
Caissa 1.9 (AVX2/BMI2) by Michal Witanowski
info string Loaded neural network: E:\Sakk\UCI-engines\Caissa/eval-13.pnn
What is that error? Does it matter?

BTW, can it be the new net causes the problem?
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

The error means that the engine failed to enabled large pages (the exe needs some privileges set up in Windows settings), but it shouldn't be a problem. I think this error is printed since early releases and wasn't causing any issues.
The net shouldn't be a problem, because it loaded successfully and isn't used till "go" command is called.
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
User avatar
Graham Banks
Posts: 26916
Joined: Sun Dec 18, 2005 5:47 pm
Sign-up code: 0
Location: Auckland, NZ

Re: New engine: Caissa

Post by Graham Banks »

Could you compile an exe for me that uses 1024mb hash, 4 cores and uses the tablebase path E:\SyzygyTablebases by default?
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Graham Banks wrote: Tue Jun 20, 2023 10:32 pm Could you compile an exe for me that uses 1024mb hash, 4 cores and uses the tablebase path E:\SyzygyTablebases by default?
It's not needed. You just set this exact command line options string in engine settings:

Code: Select all

"setoption name Hash value 1024" "setoption name Threads value 4" "setoption name SyzygyPath value E:\SyzygyTablebases" 
Basically all strings passed in command line in quotes are executed as an UCI command.
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
User avatar
Graham Banks
Posts: 26916
Joined: Sun Dec 18, 2005 5:47 pm
Sign-up code: 0
Location: Auckland, NZ

Re: New engine: Caissa

Post by Graham Banks »

Witek902 wrote: Wed Jun 21, 2023 11:03 am
Graham Banks wrote: Tue Jun 20, 2023 10:32 pm Could you compile an exe for me that uses 1024mb hash, 4 cores and uses the tablebase path E:\SyzygyTablebases by default?
It's not needed. You just set this exact command line options string in engine settings:

Code: Select all

"setoption name Hash value 1024" "setoption name Threads value 4" "setoption name SyzygyPath value E:\SyzygyTablebases" 
Basically all strings passed in command line in quotes are executed as an UCI command.
Thanks. I'll give it a try. :thumbup:
Ray
Posts: 22606
Joined: Sun Dec 18, 2005 6:33 pm
Sign-up code: 10159
Location: NZ

Re: New engine: Caissa

Post by Ray »

OK I can duplicate this in ChessGUI as well (although I haven't used that for years now)

Perhaps it does not like the "/" or the brackets in the UCI engine name, that is all I can suggest.
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Ray wrote: Wed Jun 21, 2023 11:35 am Perhaps it does not like the "/" or the brackets in the UCI engine name, that is all I can suggest.
I was trying everything, nothing worked. So far I know it started to happen after I switched to using CMake to generate Visual Studio solution. Some project settings were different, but it still doesn't work when I made them the same. Very weird... I'll try building Caissa with GCC and see if it works
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
Ray
Posts: 22606
Joined: Sun Dec 18, 2005 6:33 pm
Sign-up code: 10159
Location: NZ

Re: New engine: Caissa

Post by Ray »

Eng07 (caissa-1.9-avx2-bmi2) <- AdjustTokenPrivileges failed, error code: 1300
Cancelling StartEngineTimerEvent() for caissa-1.9-avx2-bmi2 at 0000000189899531.

ChessGUI thinks the failure to allocate large pages is a critical error and then aborts ?

However, I still think that "/" in the UCI engine name is an issue. ChessGUI saves a file to disk, and that is not a valid character for a Windows file name.

Perhaps you could change that and generate a new exe for us to try ?
Ray
Posts: 22606
Joined: Sun Dec 18, 2005 6:33 pm
Sign-up code: 10159
Location: NZ

Re: New engine: Caissa

Post by Ray »

Solved it by manually editing the ChessGUI config files.
Attachments
caissa.png
caissa.png (32.91 KiB) Viewed 117852 times
Ray
Posts: 22606
Joined: Sun Dec 18, 2005 6:33 pm
Sign-up code: 10159
Location: NZ

Re: New engine: Caissa

Post by Ray »

In the file ChsGUI_Eng.TXT

[Caissa 1.9 (AVX2-BMI2)]
MyName=Caissa 1.9 (AVX2-BMI2)
OriginalName=Caissa 1.9 (AVX2-BMI2)
EngineFile=C:\ChessEngines\Caissa 1.9\caissa-1.9-avx2-bmi2.exe
EngineAuthor=Michal Witanowski
CommandLine=
EngineCode=571763226312736 157288800 128 0 0 0 0 0 0 0 0 0
EngineInts=0 1 2 -1 0 0 0 0 0 0 0 0
EngineWords=0 0 0 0 0 0 0 0 0 0 0 0
EloValue=2400

In the config folder:
Make a plain text file called
Caissa 1.9 (AVX2-BMI2).uci

Put the following into it
option name EvalFile type string default eval-13.pnn
option name SyzygyPath type string default C:\Syzygy5
option name Hash type spin default 1024 min 1 max 32000
option name MultiPV type spin default 1 min 1 max 280
option name MoveOverhead type spin default 10 min 0 max 10000
option name Threads type spin default 4 min 1 max 1024
option name SyzygyProbeLimit type spin default 7 min 4 max 7
option name UCI_AnalyseMode type check default false
option name UCI_Chess960 type check default false
option name UCI_ShowWDL type check default false
option name UseSAN type check default false
option name ColorConsoleOutput type check default false

Then go edit engine and edit parameters and it should work.


However none of this would be necessary if the "/" was removed from the engine name. I'm 99.9% sure that that is the issue.
Ray
Posts: 22606
Joined: Sun Dec 18, 2005 6:33 pm
Sign-up code: 10159
Location: NZ

Re: New engine: Caissa

Post by Ray »

Shredder GUI is obviously coded to deal with this, when it creates the .eng file it silently substitutes the "/" automatically with an underscore.

Caissa 1.9 (AVX2_BMI2).eng
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Caissa 1.10 has been released:
https://github.com/Witek902/Caissa/releases/tag/1.10

I removed forward slash from the engine name, hopefully this fixes ChessGUI issue.
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
bastiball
Posts: 1946
Joined: Thu Aug 05, 2021 2:35 pm
Sign-up code: 10159
Location: Cavite, Philippines
Contact:

Re: New engine: Caissa

Post by bastiball »

Witek902 wrote: Sun Jul 23, 2023 11:51 pm Caissa 1.11 has been released:
https://github.com/Witek902/Caissa/releases/tag/1.11
Thanks for the new version!
CCRL Testing Group
bastiball
Posts: 1946
Joined: Thu Aug 05, 2021 2:35 pm
Sign-up code: 10159
Location: Cavite, Philippines
Contact:

Re: New engine: Caissa

Post by bastiball »

CCRL Testing Group
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
bastiball
Posts: 1946
Joined: Thu Aug 05, 2021 2:35 pm
Sign-up code: 10159
Location: Cavite, Philippines
Contact:

Re: New engine: Caissa

Post by bastiball »

Witek902 wrote: Fri Sep 29, 2023 9:13 am Caissa 1.13 has been released!
https://github.com/Witek902/Caissa/releases/tag/1.13
HI, I think, there's bug in FRC, Can you please check it?
https://www.mediafire.com/file/c7yeox3h ... a.pgn/file
CCRL Testing Group
User avatar
Gabor Szots
Posts: 12848
Joined: Sat Dec 09, 2006 6:30 am
Sign-up code: 10159
Location: Szentendre, Hungary

Re: New engine: Caissa

Post by Gabor Szots »

bastiball wrote: Fri Sep 29, 2023 2:57 pm
Witek902 wrote: Fri Sep 29, 2023 9:13 am Caissa 1.13 has been released!
https://github.com/Witek902/Caissa/releases/tag/1.13
HI, I think, there's bug in FRC, Can you please check it?
https://www.mediafire.com/file/c7yeox3h ... a.pgn/file
Not only in FRC. I played a very short match between 1.12 and 1.13 but interrupted it after 12-0 in favour of 1.12. Can it be that the default of <empty> is not enough to play with the internal net?
Witek902
Posts: 40
Joined: Mon Jul 11, 2022 11:56 pm
Sign-up code: 10159

Re: New engine: Caissa

Post by Witek902 »

Gabor Szots wrote: Fri Sep 29, 2023 4:06 pm
bastiball wrote: Fri Sep 29, 2023 2:57 pm
Witek902 wrote: Fri Sep 29, 2023 9:13 am Caissa 1.13 has been released!
https://github.com/Witek902/Caissa/releases/tag/1.13
HI, I think, there's bug in FRC, Can you please check it?
https://www.mediafire.com/file/c7yeox3h ... a.pgn/file
Not only in FRC. I played a very short match between 1.12 and 1.13 but interrupted it after 12-0 in favour of 1.12. Can it be that the default of <empty> is not enough to play with the internal net?
Indeed setting EvalFile as "<empty>" causes no net to be used. Can you workaround it by forcing EvalFile option to an empty string? I'll try to prepare a fix soon
Author of Caissa Chess Engine: https://github.com/Witek902/Caissa
Post Reply