7-men Syzygy attempt

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: 7-men Syzygy attempt

Post by syzygy »

Dann Corbit wrote: Thu Jun 28, 2018 11:17 pm I get an error trying to build:

Code: Select all

threads.c:285:8: error: unknown type name 'pthread_t'
 static pthread_t cmprs_threads[COMPRESSION_THREADS];
        ^~~~~~~~~
threads.c:287:8: error: unknown type name 'pthread_barrier_t'
 static pthread_barrier_t cmprs_barrier;
        ^~~~~~~~~~~~~~~~~
I cannot help you fix a broken gcc installation. How can the compiler not find pthread_t without failing on #include <pthread.h> ????
Is there an option to use C++ 11 threads instead of pthreads?
This is C.
Dann Corbit
Posts: 12540
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: 7-men Syzygy attempt

Post by Dann Corbit »

These are not guarded by #ifdef __WIN32__ :

Code: Select all

static pthread_t cmprs_threads[COMPRESSION_THREADS];
static struct thread_data cmprs_data[COMPRESSION_THREADS];
static pthread_barrier_t cmprs_barrier;
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
noobpwnftw
Posts: 560
Joined: Sun Nov 08, 2015 11:10 pm

Re: 7-men Syzygy attempt

Post by noobpwnftw »

syzygy wrote: Thu Jun 28, 2018 10:51 pm Thanks, I have found and fixed a problem. I have also fixed the -z option. Unfortunately it will be necessary to regenerate the .rtbz table.
I'm regenerating the table and deleted the old file.
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: 7-men Syzygy attempt

Post by syzygy »

Dann Corbit wrote: Fri Jun 29, 2018 12:28 am These are not guarded by #ifdef __WIN32__ :

Code: Select all

static pthread_t cmprs_threads[COMPRESSION_THREADS];
static struct thread_data cmprs_data[COMPRESSION_THREADS];
static pthread_barrier_t cmprs_barrier;
Ah ok, apparently you're trying to compile on Windows. For the moment this is not supported, but you can use an old version from before the 7-men changes. (So if you have a machine with 1TB of RAM and want to generate 7-piece tables, you need to install Linux for now. If you don't have such a machine, there is no reason to use the new code.)
noobpwnftw
Posts: 560
Joined: Sun Nov 08, 2015 11:10 pm

Re: 7-men Syzygy attempt

Post by noobpwnftw »

Newly rebuilt file uploaded.
Sesse
Posts: 300
Joined: Mon Apr 30, 2018 11:51 pm

Re: 7-men Syzygy attempt

Post by Sesse »

I've synced mine as well.
noobpwnftw
Posts: 560
Joined: Sun Nov 08, 2015 11:10 pm

Re: 7-men Syzygy attempt

Post by noobpwnftw »

One drawback is tables like KPPPPvK?, they each tend to take 3 full days to build.
The ppppp branch should work though, as long as the tables do not need reductions?
Maybe also a few recent changes/fixes needs to be merged.
syzygy
Posts: 5566
Joined: Tue Feb 28, 2012 11:56 pm

Re: 7-men Syzygy attempt

Post by syzygy »

noobpwnftw wrote: Sun Jul 01, 2018 4:50 am One drawback is tables like KPPPPvK?, they each tend to take 3 full days to build.
The ppppp branch should work though, as long as the tables do not need reductions?
Maybe also a few recent changes/fixes needs to be merged.
Yes, the ppppp branch should work as long as no reductions are needed.
I don't think it needs recent changes or fixes (but I will have a look).

If reductions are needed for a table, it may be possible to hack around that problem by reducing (just for that table) DRAW_RULE from 100 to 80 or 60 or so. As long as there are no positions that need 80 (or 60) ply to win or lose, that should be fine. (So if DRAW_RULE is 60 and the statistics stop at 55 and then continue at 61, it should be OK. 61 should then be read as 101 and the .txt file should be fixed.)

My pawnful numa branch should solve all these problems, but it is not ready yet (and the modifications are quite tricky).
noobpwnftw
Posts: 560
Joined: Sun Nov 08, 2015 11:10 pm

Re: 7-men Syzygy attempt

Post by noobpwnftw »

syzygy wrote: Sun Jul 01, 2018 10:51 am
noobpwnftw wrote: Sun Jul 01, 2018 4:50 am One drawback is tables like KPPPPvK?, they each tend to take 3 full days to build.
The ppppp branch should work though, as long as the tables do not need reductions?
Maybe also a few recent changes/fixes needs to be merged.
Yes, the ppppp branch should work as long as no reductions are needed.
I don't think it needs recent changes or fixes (but I will have a look).

If reductions are needed for a table, it may be possible to hack around that problem by reducing (just for that table) DRAW_RULE from 100 to 80 or 60 or so. As long as there are no positions that need 80 (or 60) ply to win or lose, that should be fine. (So if DRAW_RULE is 60 and the statistics stop at 55 and then continue at 61, it should be OK. 61 should then be read as 101 and the .txt file should be fixed.)

My pawnful numa branch should solve all these problems, but it is not ready yet (and the modifications are quite tricky).
Luckily KPPPPvK? tables do not need reduction, now they are built using ppppp branch and I have double checked KPPPPvKQ built using master, they are exactly the same. All 5v2 pawnful tables are now built.
User avatar
Ozymandias
Posts: 1535
Joined: Sun Oct 25, 2009 2:30 am

Re: 7-men Syzygy attempt

Post by Ozymandias »

noobpwnftw wrote: Sun Jul 01, 2018 7:34 pmAll 5v2 pawnful tables are now built.
How much do they take? The fttp link in the first post gives me 630 files at about one giga per file.