Really serious endgame issues

Discussion of chess software programming and technical issues.

Moderator: Ras

abulmo2
Posts: 465
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Really serious endgame issues

Post by abulmo2 »

Graham Banks wrote: Wed Jun 18, 2025 4:56 am Image
Hmmm, On my computer (with all CPU already running, so not the best condition), it took only 4 second to reach depth 23, not 6...

Code: Select all

....
23    -8    399  16747642  d7d5 d2d4 g8f6 g1f3 e7e6 c2c4 f8e7 b1c3 e8g8 f1e2 b8c6 e1g1 f6e4 c1d2 a7a6 g1h1 g8h8 d1e1 f7f5 c4d5 e4d2 e1d2 e6d5
24    -8    506  21205553  d7d5 d2d4 g8f6 g1f3 e7e6 c2c4 f8e7 b1c3 e8g8 f1e2 b8c6 e1g1 f6e4 c1d2 a7a6 g1h1 g8h8 d1e1 f7f5 c4d5 e4d2 e1d2 e6d5 
25    -9    649  27120003  d7d5 d2d4 g8f6 g1f3 e7e6 c2c4 f8e7 c4d5 e6d5 f1d3 e8g8 b1c3 b8a6 a2a3 c7c5 d3c2 c5c4 e1g1 d8b6 c3a4 b6e6 c1d2 f8d8 
move d7d5
Graham, with Dumb 2.3, you can try

Code: Select all

dumb-2.3 -b 20
to see the speed of Dumb on your computer. Your last line should show something like:

Code: Select all

bench: 123995154 nodes in 16.8529 s, 7357510 nps.
You can also try tools like https://www.geekbench.com/ and see how you computer compare to others here: https://browser.geekbench.com/processor ... en-9-5950x

Note that I am fine if your computer is intentionally running at slower speed, as it affect all engines in a similar way.
Richard Delorme
OliverBr
Posts: 796
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Really serious endgame issues

Post by OliverBr »

abulmo2 wrote: Wed Jun 18, 2025 7:52 am Graham, with Dumb 2.3, you can try

Code: Select all

dumb-2.3 -b 20
to see the speed of Dumb on your computer. Your last line should show something like:

Code: Select all

bench: 123995154 nodes in 16.8529 s, 7357510 nps.
I did this on the linux server I am testing and got:

Code: Select all

bench: 123995154 nodes in 32.3588 s, 3831878 nps.
which is surprisingly worse than your numbers. I mean, 7.36 Million Nodes per second^^. I am really impressed.
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
User avatar
Graham Banks
Posts: 44042
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Really serious endgame issues

Post by Graham Banks »

abulmo2 wrote: Wed Jun 18, 2025 7:52 am
Graham Banks wrote: Wed Jun 18, 2025 4:56 am Image
Hmmm, On my computer (with all CPU already running, so not the best condition), it took only 4 second to reach depth 23, not 6...

Code: Select all

....
23    -8    399  16747642  d7d5 d2d4 g8f6 g1f3 e7e6 c2c4 f8e7 b1c3 e8g8 f1e2 b8c6 e1g1 f6e4 c1d2 a7a6 g1h1 g8h8 d1e1 f7f5 c4d5 e4d2 e1d2 e6d5
24    -8    506  21205553  d7d5 d2d4 g8f6 g1f3 e7e6 c2c4 f8e7 b1c3 e8g8 f1e2 b8c6 e1g1 f6e4 c1d2 a7a6 g1h1 g8h8 d1e1 f7f5 c4d5 e4d2 e1d2 e6d5 
25    -9    649  27120003  d7d5 d2d4 g8f6 g1f3 e7e6 c2c4 f8e7 c4d5 e6d5 f1d3 e8g8 b1c3 b8a6 a2a3 c7c5 d3c2 c5c4 e1g1 d8b6 c3a4 b6e6 c1d2 f8d8 
move d7d5
Graham, with Dumb 2.3, you can try

Code: Select all

dumb-2.3 -b 20
to see the speed of Dumb on your computer. Your last line should show something like:

Code: Select all

bench: 123995154 nodes in 16.8529 s, 7357510 nps.
You can also try tools like https://www.geekbench.com/ and see how you computer compare to others here: https://browser.geekbench.com/processor ... en-9-5950x

Note that I am fine if your computer is intentionally running at slower speed, as it affect all engines in a similar way.
Image
gbanksnz at gmail.com
abulmo2
Posts: 465
Joined: Fri Dec 16, 2016 11:04 am
Location: France
Full name: Richard Delorme

Re: Really serious endgame issues

Post by abulmo2 »

OliverBr wrote: Wed Jun 18, 2025 8:39 am
I did this on the linux server I am testing and got:

Code: Select all

bench: 123995154 nodes in 32.3588 s, 3831878 nps.
which is surprisingly worse than your numbers. I mean, 7.36 Million Nodes per second^^. I am really impressed.
Well, Linux server does not mean much. Knowing the CPU and its frequency is more informative :wink: .
Richard Delorme
OliverBr
Posts: 796
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Really serious endgame issues

Post by OliverBr »

abulmo2 wrote: Wed Jun 18, 2025 11:22 am
OliverBr wrote: Wed Jun 18, 2025 8:39 am
I did this on the linux server I am testing and got:

Code: Select all

bench: 123995154 nodes in 32.3588 s, 3831878 nps.
which is surprisingly worse than your numbers. I mean, 7.36 Million Nodes per second^^. I am really impressed.
Well, Linux server does not mean much. Knowing the CPU and its frequency is more informative :wink: .
Of course, I didn't know you wanted to know that :)
This is the first of the siblings:

Code: Select all

# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 191
model name	: 13th Gen Intel(R) Core(TM) i5-13500
stepping	: 2
microcode	: 0x36
cpu MHz		: 3361.318
cache size	: 24576 KB
physical id	: 0
siblings	: 20
core id		: 0
cpu cores	: 14
apicid		: 0
initial apicid	: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 32
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rdseed adx smap clflushopt clwb intel_pt sha_ni xsaveopt xsavec xgetbv1 xsaves avx_vnni dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp hwp_pkg_req hfi umip pku ospke waitpkg gfni vaes vpclmulqdq tme rdpid movdiri movdir64b fsrm md_clear serialize pconfig arch_lbr ibt flush_l1d arch_capabilities
vmx flags	: vnmi preemption_timer posted_intr invvpid ept_x_only ept_ad ept_1gb flexpriority apicv tsc_offset vtpr mtf vapic ept vpid unrestricted_guest vapic_reg vid ple shadow_vmcs ept_mode_based_exec tsc_scaling usr_wait_pause
bugs		: spectre_v1 spectre_v2 spec_store_bypass swapgs eibrs_pbrsb rfds bhi
bogomips	: 4992.00
clflush size	: 64
cache_alignment	: 64
address sizes	: 46 bits physical, 48 bits virtual
power management:
Again, impressing that you got double speed with your CPU, because mine is not a lame duck.
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
OliverBr
Posts: 796
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Really serious endgame issues

Post by OliverBr »

@Graham,
maybe one last question about the providing of endgame tabledata in your tournament.
Would it work if a command line option like

Code: Select all

olithink -tb E:/path/to/glory
told the engine where it can find it?
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
User avatar
Graham Banks
Posts: 44042
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Really serious endgame issues

Post by Graham Banks »

OliverBr wrote: Wed Jun 18, 2025 12:48 pm @Graham,
maybe one last question about the providing of endgame tabledata in your tournament.
Would it work if a command line option like

Code: Select all

olithink -tb E:/path/to/glory
told the engine where it can find it?
I would think so.
Works for Dirty plus some other Winboard engines.
gbanksnz at gmail.com
OliverBr
Posts: 796
Joined: Tue Dec 18, 2007 9:38 pm
Location: Munich, Germany
Full name: Dr. Oliver Brausch

Re: Really serious endgame issues

Post by OliverBr »

Graham Banks wrote: Wed Jun 18, 2025 1:04 pm I would think so.
Works for Dirty plus some other Winboard engines.
Great, I may probably implement it. The link is to a directory with multiple files like

Code: Select all

KBBBvK.rtbw	2013-12-07 03:14	722K	 
KBBBvK.rtbz	2013-12-07 03:13	1.8M	 
KBBNvK.rtbw	2013-12-07 03:14	104K
...
?
Chess Engine OliThink: http://brausch.org/home/chess
OliThink GitHub:https://github.com/olithink
User avatar
Graham Banks
Posts: 44042
Joined: Sun Feb 26, 2006 10:52 am
Location: Auckland, NZ

Re: Really serious endgame issues

Post by Graham Banks »

OliverBr wrote: Wed Jun 18, 2025 7:51 pm
Graham Banks wrote: Wed Jun 18, 2025 1:04 pm I would think so.
Works for Dirty plus some other Winboard engines.
Great, I may probably implement it. The link is to a directory with multiple files like

Code: Select all

KBBBvK.rtbw	2013-12-07 03:14	722K	 
KBBBvK.rtbz	2013-12-07 03:13	1.8M	 
KBBNvK.rtbw	2013-12-07 03:14	104K
...
?
I have all of the required tablebase files in my folders, E:\Tablebases (Nalimov), E:\GaviotaTablebases, E:\SyzygyTablebases and E:\egbbs.
I can give the engine the path to whichever ones it should use.
gbanksnz at gmail.com