AdaChess v.30 released

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

Moderators: hgm, Rebel, chrisw

alessandro
Posts: 49
Joined: Tue Aug 12, 2014 11:21 am
Location: Lund
Full name: Alessandro Iavicoli

Re: AdaChess v.30 released

Post by alessandro »

tpoppins wrote: Mon Oct 29, 2018 10: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.
--
AdaChess - Smart Chess Engine - https://github.com/adachess/AdaChess

Image
RubiChess
Posts: 584
Joined: Fri Mar 30, 2018 7:20 am
Full name: Andreas Matthies

Re: AdaChess v.30 released

Post by RubiChess »

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: 49
Joined: Tue Aug 12, 2014 11:21 am
Location: Lund
Full name: Alessandro Iavicoli

Re: AdaChess v.30 released

Post by alessandro »

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.
--
AdaChess - Smart Chess Engine - https://github.com/adachess/AdaChess

Image
alessandro
Posts: 49
Joined: Tue Aug 12, 2014 11:21 am
Location: Lund
Full name: Alessandro Iavicoli

Re: AdaChess v.30 released

Post by alessandro »

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!
--
AdaChess - Smart Chess Engine - https://github.com/adachess/AdaChess

Image
Gabor Szots
Posts: 1362
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: AdaChess v.30 released

Post by Gabor Szots »

alessandro wrote: Sat Nov 03, 2018 8: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: 1362
Joined: Sat Jul 21, 2018 7:43 am
Location: Szentendre, Hungary
Full name: Gabor Szots

Re: AdaChess v.30 released

Post by Gabor Szots »

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 9:11 pm
Location: upstate

Re: AdaChess v.30 released

Post by tpoppins »

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: 326
Joined: Mon May 24, 2010 4:32 pm

Re: AdaChess v.30 released

Post by Jamal Bubker »

Hi Alessandro !

Thanks for releasing your chess engine :D
alessandro
Posts: 49
Joined: Tue Aug 12, 2014 11:21 am
Location: Lund
Full name: Alessandro Iavicoli

Re: AdaChess v.30 released

Post by alessandro »

tpoppins wrote: Sun Nov 04, 2018 4: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 :)
--
AdaChess - Smart Chess Engine - https://github.com/adachess/AdaChess

Image
alessandro
Posts: 49
Joined: Tue Aug 12, 2014 11:21 am
Location: Lund
Full name: Alessandro Iavicoli

Re: AdaChess v.30 released

Post by alessandro »

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

Thanks for releasing your chess engine :D
My pleasure. And thanks you too, to play with it! :D
--
AdaChess - Smart Chess Engine - https://github.com/adachess/AdaChess

Image