AdaChess v.30 released

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
alessandro
Posts: 23
Joined: Tue Aug 12, 2014 9:21 am
Location: Oldenburg
Full name: Alessandro Iavicoli
Contact:

Re: AdaChess v.30 released

Post by alessandro » Mon Oct 29, 2018 10:42 pm

tpoppins wrote:
Mon Oct 29, 2018 9:58 pm
1900 Elo? That would be a huge jump!

BTW, I can confirm Gabor's observations re: extra-core usage. On this 12-core Xeon the new version does take up two cores: the CPU usage is reported as 17% by Task Manager, whereas it should be 8%.

Only recently I introduced the 2017 version to the 40/4 list and it doesn't exhibit this behavior. According to Process Hacker, the process runs two threads, only one of which takes CPU time of between 8 and 9%. The other one's CPU usage is apparently negligible. Now this new version has each of its two threads consuming 8%+ constantly during search -- that's two cores occupied by a non-SMP program.

I view this as a serious bug that should be addressed ASAP.
Thanks for your feedback. I will look into the detail to find the problem and release a fixed version ASAP.
--
Have a look at AdaChess - https://www.adachess.com

Image

RubiChess
Posts: 119
Joined: Fri Mar 30, 2018 5:20 am

Re: AdaChess v.30 released

Post by RubiChess » Tue Oct 30, 2018 12:35 pm

I don't know if this is possible in ADA and I don't know your code but usually a thread that waits for another thread in some loop should do a
sleep <some milliseconds>
inside the loop.

Maybe that helps.

Andreas

alessandro
Posts: 23
Joined: Tue Aug 12, 2014 9:21 am
Location: Oldenburg
Full name: Alessandro Iavicoli
Contact:

Re: AdaChess v.30 released

Post by alessandro » Sat Nov 03, 2018 5:00 pm

Someone wrote me that AdaChess was not downloadable, I believe due to a bug into the download manager behind my site.
AdaChess is again available for download.
--
Have a look at AdaChess - https://www.adachess.com

Image

alessandro
Posts: 23
Joined: Tue Aug 12, 2014 9:21 am
Location: Oldenburg
Full name: Alessandro Iavicoli
Contact:

Re: AdaChess v.30 released

Post by alessandro » Sat Nov 03, 2018 7:30 pm

I fixed the CPU usage bug. The version named 3.1 is available for download on http://www.adachess.com/
I wish to thanks you guys for your feedback. Communities always helps to improve our work.
I hope you enjoy AdaChess!
--
Have a look at AdaChess - https://www.adachess.com

Image

Gabor Szots
Posts: 306
Joined: Sat Jul 21, 2018 5:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: AdaChess v.30 released

Post by Gabor Szots » Sat Nov 03, 2018 7:49 pm

alessandro wrote:
Sat Nov 03, 2018 7:30 pm
I fixed the CPU usage bug. The version named 3.1 is available for download on http://www.adachess.com/
I wish to thanks you guys for your feedback. Communities always helps to improve our work.
I hope you enjoy AdaChess!
That was quick! Thank you, Alessandro.
Gabor Szots
CCRL testing group

Gabor Szots
Posts: 306
Joined: Sat Jul 21, 2018 5:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: AdaChess v.30 released

Post by Gabor Szots » Sat Nov 03, 2018 8:47 pm

Oh, a minor 'bug': It still says its version is 3.0.
Gabor Szots
CCRL testing group

tpoppins
Posts: 919
Joined: Tue Nov 24, 2015 8:11 pm
Location: upstate

Re: AdaChess v.30 released

Post by tpoppins » Sun Nov 04, 2018 3:19 am

Confirmed: the extra-core problem is gone. v3.1 now behaves in that respect properly, like earlier versions: one main thread using a full core and a secondary thread that comes and goes and briefly uses something like 1/10th of the main thread's CPU time.

Bravo, Alessandro!

Care to share how you managed to fix it, in layman's terms? (I know next to nothing about Ada).
Tirsa Poppins
CCRL

Jamal Bubker
Posts: 266
Joined: Mon May 24, 2010 2:32 pm

Re: AdaChess v.30 released

Post by Jamal Bubker » Sun Nov 04, 2018 9:27 am

Hi Alessandro !

Thanks for releasing your chess engine :D

alessandro
Posts: 23
Joined: Tue Aug 12, 2014 9:21 am
Location: Oldenburg
Full name: Alessandro Iavicoli
Contact:

Re: AdaChess v.30 released

Post by alessandro » Sun Nov 04, 2018 9:44 am

tpoppins wrote:
Sun Nov 04, 2018 3:19 am
Care to share how you managed to fix it, in layman's terms? (I know next to nothing about Ada).
The problem itself is still a bit unclear to me: I used the Yield function from the standard library to sleep a thread. Why the thread was still awake? I need to look further to answer this question in details.
To solve the problem and release the solved version ASAP I have just changed the way to put the clock asleep in another way :)
--
Have a look at AdaChess - https://www.adachess.com

Image

alessandro
Posts: 23
Joined: Tue Aug 12, 2014 9:21 am
Location: Oldenburg
Full name: Alessandro Iavicoli
Contact:

Re: AdaChess v.30 released

Post by alessandro » Sun Nov 04, 2018 9:45 am

Jamal Bubker wrote:
Sun Nov 04, 2018 9:27 am
Hi Alessandro !

Thanks for releasing your chess engine :D
My pleasure. And thanks you too, to play with it! :D
--
Have a look at AdaChess - https://www.adachess.com

Image

Post Reply