ZCT 0.3.2500 released

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

Moderator: Ras

User avatar
Jim Ablett
Posts: 2284
Joined: Fri Jul 14, 2006 7:56 am
Location: London, England
Full name: Jim Ablett

Re: ZCT 0.3.2500 released

Post by Jim Ablett »

Image
ZCT 0.3.2500 JA by Zach Wegner
http://zct.sourceforge.net/

Windows x64/win32 Intel 11/10 pgo (non-smp) builds

Wael Deeb's official opening book will need to be updated to work with the new version.
I have included an opening book file created from Olivier Deville's 'Gm2001.pgn in the meantime.

Download:
http://www.mediafire.com/?tozziilggjd

Jim.
F. Bluemers
Posts: 880
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: ZCT 0.3.2500 released

Post by F. Bluemers »

Zach Wegner wrote:I was working a bit on a Windows build. I uploaded some fixes for Windows compatibility, now all that the source needs to compile is to comment out #define ZCT_POSIX and uncomment #define ZCT_WINDOWS. Also, since MSVC doesn't support inline assembly, it needs some intrinsics (BitScanForward64, etc) to run quickly.
Thanks for the update.
vc2005 express optimization stuff breaks it.
maybe it does not know what volatile means :D.

Code: Select all

Time: (us=4:55 them=5:00) soft=9.248 hard=36.992
Depth        Time  Score   PV (nodes)
  4/11      0.031  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (5087)
[ 4/11]     0.031  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (5986)
  5/11      0.031  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (6654)
[ 5/11]     0.047  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (11112)
  6/14      0.062  -1.18   10. Be3 Bxe3 11. fxe3 Na6 12. Bd3 d6 (16923)
[ 6/14]     0.078  -1.18   10. Be3 Bxe3 11. fxe3 Na6 12. Bd3 d6 (20471)
  7/14      0.078  -1.71   10. Be3 Bxe3 11. fxe3 Na6 12. Bd3 Ng4 13. O-O Nxe3
                             (22900)
  7/15      0.187  -0.79   10. Bf4 Ng4 11. Bg3H Nc6H 12. Qd2H d6H 13. Be2H
                             (62539)
[ 7/15]     0.234  -0.79   10. Bf4 Ng4 11. Bg3H Nc6H 12. Qd2H d6H 13. Be2H
                             (82833)
  8/18      0.281  -1.08   10. Bf4 Ng4 11. Bg3 Bxf2+ 12. Bxf2 d6 13. Bd3 Nxf2
                             14. Qxf2 (105626)
Assert failed. .\smp2.c(67): ply > 0 && ply < MAX_PLY
Putting
#pragma optimize( "", off ) right before every function that uses LOCK() fixes this issue.

Best
Fonzy
Kaj Soderberg

Re: ZCT 0.3.2500 released

Post by Kaj Soderberg »

Thanks Zach for the interesting new engine, and Kenny for the Mac version.

Best regards,

Kaj
User avatar
Dr.Wael Deeb
Posts: 9773
Joined: Wed Mar 08, 2006 8:44 pm
Location: Amman,Jordan

Re: ZCT 0.3.2500 released

Post by Dr.Wael Deeb »

Jim Ablett wrote:Image
ZCT 0.3.2500 JA by Zach Wegner
http://zct.sourceforge.net/

Windows x64/win32 Intel 11/10 pgo (non-smp) builds

Wael Deeb's official opening book will need to be updated to work with the new version.
I have included an opening book file created from Olivier Deville's 'Gm2001.pgn in the meantime.

Download:
http://www.mediafire.com/?tozziilggjd

Jim.
Thanks Jim,I can send you a new updated pgn file if you wish 8-)
Dr.D
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 0.3.2500 released

Post by Zach Wegner »

F. Bluemers wrote:
Zach Wegner wrote:I was working a bit on a Windows build. I uploaded some fixes for Windows compatibility, now all that the source needs to compile is to comment out #define ZCT_POSIX and uncomment #define ZCT_WINDOWS. Also, since MSVC doesn't support inline assembly, it needs some intrinsics (BitScanForward64, etc) to run quickly.
Thanks for the update.
vc2005 express optimization stuff breaks it.
maybe it does not know what volatile means :D.

Code: Select all

Time: (us=4:55 them=5:00) soft=9.248 hard=36.992
Depth        Time  Score   PV (nodes)
  4/11      0.031  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (5087)
[ 4/11]     0.031  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (5986)
  5/11      0.031  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (6654)
[ 5/11]     0.047  -2.97   10. Be3 Nc6 11. e5 Ng4 12. Bxc5 bxc5 (11112)
  6/14      0.062  -1.18   10. Be3 Bxe3 11. fxe3 Na6 12. Bd3 d6 (16923)
[ 6/14]     0.078  -1.18   10. Be3 Bxe3 11. fxe3 Na6 12. Bd3 d6 (20471)
  7/14      0.078  -1.71   10. Be3 Bxe3 11. fxe3 Na6 12. Bd3 Ng4 13. O-O Nxe3
                             (22900)
  7/15      0.187  -0.79   10. Bf4 Ng4 11. Bg3H Nc6H 12. Qd2H d6H 13. Be2H
                             (62539)
[ 7/15]     0.234  -0.79   10. Bf4 Ng4 11. Bg3H Nc6H 12. Qd2H d6H 13. Be2H
                             (82833)
  8/18      0.281  -1.08   10. Bf4 Ng4 11. Bg3 Bxf2+ 12. Bxf2 d6 13. Bd3 Nxf2
                             14. Qxf2 (105626)
Assert failed. .\smp2.c(67): ply > 0 && ply < MAX_PLY
Putting
#pragma optimize( "", off ) right before every function that uses LOCK() fixes this issue.

Best
Fonzy
That's pretty strange. Now that I check it here at work, it's doing the same thing. Does not fail that assert on my home NetBSD machine. Not really sure why that is happening, but I will look at the code to see if I can figure it out. It's possible that it is an optimization bug, but it's also quite possible that removing optimization just hides the real problem. The bug is more likely caused by the fact that Unix compiles use processes but Windows use threads...
F. Bluemers
Posts: 880
Joined: Thu Mar 09, 2006 11:21 pm
Location: Nederland

Re: ZCT 0.3.2500 released

Post by F. Bluemers »

I managed to "track" it down to find_split_point* in smp2.c
If I turn optimization off for just that one,everything seems fine.
Best
Fonzy

(*and BOOL is_sb=FALSE; // in that one,its nice to be intialized :wink: )
Last edited by F. Bluemers on Tue Jun 02, 2009 10:53 pm, edited 1 time in total.
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 0.3.2500 released

Post by Zach Wegner »

Jim Ablett wrote:Image
ZCT 0.3.2500 JA by Zach Wegner
http://zct.sourceforge.net/

Windows x64/win32 Intel 11/10 pgo (non-smp) builds

Wael Deeb's official opening book will need to be updated to work with the new version.
I have included an opening book file created from Olivier Deville's 'Gm2001.pgn in the meantime.

Download:
http://www.mediafire.com/?tozziilggjd

Jim.
Thanks Jim.

Why no SMP though? I think SMP functionality is probably one of the most important features of this release, if not the most.

I also changed the split point selection code to another version I had lying around. It should be a bit better scaling-wise now.

Zach
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 0.3.2500 released

Post by Zach Wegner »

F. Bluemers wrote:I managed to "track" it down to find_split_point* in smp2.c
If I turn optimization of for just that one,everything seems fine.
Best
Fonzy

(*and BOOL is_sb=FALSE; // in that one,its nice to be intialized :wink: )
Not sure what the issue is then.

That is_sb is also unused anyways, so I removed it. CVS update! :D
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: ZCT 0.3.2500 released

Post by Zach Wegner »

Dr.Wael Deeb wrote:Thanks Jim,I can send you a new updated pgn file if you wish 8-)
Dr.D
I could use that too. :)

I was going to release a new book, but wanted to wait for a binary. SMP should be enabled by default though.
User avatar
Dr.Wael Deeb
Posts: 9773
Joined: Wed Mar 08, 2006 8:44 pm
Location: Amman,Jordan

Re: ZCT 0.3.2500 released

Post by Dr.Wael Deeb »

Zach Wegner wrote:
Dr.Wael Deeb wrote:Thanks Jim,I can send you a new updated pgn file if you wish 8-)
Dr.D
I could use that too. :)

I was going to release a new book, but wanted to wait for a binary. SMP should be enabled by default though.
I'll buzz you along with Jim when I am ready with the pgn :D
Dr.D
_No one can hit as hard as life.But it ain’t about how hard you can hit.It’s about how hard you can get hit and keep moving forward.How much you can take and keep moving forward….