Polyglot 2.0.3 memory limit

Discussion of chess software programming and technical issues.

Moderators: hgm, Rebel, chrisw

Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Polyglot 2.0.3 memory limit

Post by Joost Buijs »

hgm wrote:The address space of a 32-bit program is 4GB, but that doesn't mean it is all available for allocation. I don't think I was ever able to allocate more than 1GB.

I don't have a 64-bit compiler for windows, so the Polyglot I include with WinBoard is 32 bit. It is included with WinBoard for use as an adapter to run UCI engines. Not for the purpose of making books.
In theory the address space for 32 bit programs is 4GB, but running under 64 bit Windows (WOW64) this is not always true.

You can try the free Visual Studio 2013 Community edition, since it is the same as the Professional edition it includes a 64 bit compiler.
User avatar
Ozymandias
Posts: 1535
Joined: Sun Oct 25, 2009 2:30 am

Re: Polyglot 2.0.3 memory limit

Post by Ozymandias »

Joost Buijs wrote:
Ozymandias wrote:
Joost Buijs wrote:When you are interested I can put the 64 bit executable on dropbox.
I'm already interested :wink:
Ok, this is the link:
https://www.dropbox.com/s/3ap93gwgp5whn ... t.rar?dl=0

I hope this version is able to allocate more memory, if not I have to take a look at the source to see what is actually happening.
Thank you, I'll test it right away.
User avatar
Ozymandias
Posts: 1535
Joined: Sun Oct 25, 2009 2:30 am

Re: Polyglot 2.0.3 memory limit

Post by Ozymandias »

After installing the x64 redistributable for Visual Studio 2013, I'm still getting a message saying I don't have libmmd.dll (I already restarted).
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot 2.0.3 memory limit

Post by hgm »

Joost Buijs wrote:In theory the address space for 32 bit programs is 4GB, but running under 64 bit Windows (WOW64) this is not always true.
I ran into this problem with my tablebase generator, which could not allocate space for KBNK on a 14x14 board, which would require ~1.4GB (1 byte per position). When I declared a static array of 1.5GB, and pointed to that in stead of doing malloc(), it worked fine. (So in case anyone is interested: KBNK on 14x14 is generally won, and takes 78 moves maximum against best defense.)
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Polyglot 2.0.3 memory limit

Post by Joost Buijs »

Ozymandias wrote:After installing the x64 redistributable for Visual Studio 2013, I'm still getting a message saying I don't have libmmd.dll (I already restarted).
That is a problem, I compiled it with the Intel compiler, probably it is an Intel library.
I will take al look if I can link it statically.
Otherwise I can send you the missing ddl(s) as well.
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Polyglot 2.0.3 memory limit

Post by Joost Buijs »

Ozymandias wrote:After installing the x64 redistributable for Visual Studio 2013, I'm still getting a message saying I don't have libmmd.dll (I already restarted).
Ok, I've linked it statically, hopefully now it will work for you as well. It is a little bit larger.
Here it works fine, but I have all libraries installed.
This is always something I forget.

New link:
https://www.dropbox.com/s/3ap93gwgp5whn ... t.rar?dl=0
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Polyglot 2.0.3 memory limit

Post by Joost Buijs »

hgm wrote:
Joost Buijs wrote:In theory the address space for 32 bit programs is 4GB, but running under 64 bit Windows (WOW64) this is not always true.
I ran into this problem with my tablebase generator, which could not allocate space for KBNK on a 14x14 board, which would require ~1.4GB (1 byte per position). When I declared a static array of 1.5GB, and pointed to that in stead of doing malloc(), it worked fine. (So in case anyone is interested: KBNK on 14x14 is generally won, and takes 78 moves maximum against best defense.)
About the monthly blitz tourney:
Will it be held this weekend or next weekend?
User avatar
hgm
Posts: 27796
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: Polyglot 2.0.3 memory limit

Post by hgm »

Next weekend.
User avatar
Ozymandias
Posts: 1535
Joined: Sun Oct 25, 2009 2:30 am

Re: Polyglot 2.0.3 memory limit

Post by Ozymandias »

Joost Buijs wrote:
Ozymandias wrote:After installing the x64 redistributable for Visual Studio 2013, I'm still getting a message saying I don't have libmmd.dll (I already restarted).
Ok, I've linked it statically, hopefully now it will work for you as well. It is a little bit larger.
Here it works fine, but I have all libraries installed.
This is always something I forget.

New link:
https://www.dropbox.com/s/3ap93gwgp5whn ... t.rar?dl=0
It works here too, thx!
Joost Buijs
Posts: 1563
Joined: Thu Jul 16, 2009 10:47 am
Location: Almere, The Netherlands

Re: Polyglot 2.0.3 memory limit

Post by Joost Buijs »

Thnx! I will be there.