Thanks for your feedback. I will look into the detail to find the problem and release a fixed version ASAP.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.
AdaChess v.30 released
Moderators: hgm, Rebel, chrisw
-
- Posts: 49
- Joined: Tue Aug 12, 2014 11:21 am
- Location: Lund
- Full name: Alessandro Iavicoli
Re: AdaChess v.30 released
-
- Posts: 585
- Joined: Fri Mar 30, 2018 7:20 am
- Full name: Andreas Matthies
Re: AdaChess v.30 released
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
sleep <some milliseconds>
inside the loop.
Maybe that helps.
Andreas
-
- Posts: 49
- Joined: Tue Aug 12, 2014 11:21 am
- Location: Lund
- Full name: Alessandro Iavicoli
Re: AdaChess v.30 released
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 is again available for download.
-
- Posts: 49
- Joined: Tue Aug 12, 2014 11:21 am
- Location: Lund
- Full name: Alessandro Iavicoli
Re: AdaChess v.30 released
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!
I wish to thanks you guys for your feedback. Communities always helps to improve our work.
I hope you enjoy AdaChess!
-
- Posts: 1364
- Joined: Sat Jul 21, 2018 7:43 am
- Location: Szentendre, Hungary
- Full name: Gabor Szots
Re: AdaChess v.30 released
That was quick! Thank you, Alessandro.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!
Gabor Szots
CCRL testing group
CCRL testing group
-
- Posts: 1364
- Joined: Sat Jul 21, 2018 7:43 am
- Location: Szentendre, Hungary
- Full name: Gabor Szots
Re: AdaChess v.30 released
Oh, a minor 'bug': It still says its version is 3.0.
Gabor Szots
CCRL testing group
CCRL testing group
-
- Posts: 919
- Joined: Tue Nov 24, 2015 9:11 pm
- Location: upstate
Re: AdaChess v.30 released
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).
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
CCRL
-
- Posts: 326
- Joined: Mon May 24, 2010 4:32 pm
Re: AdaChess v.30 released
Hi Alessandro !
Thanks for releasing your chess engine
Thanks for releasing your chess engine
-
- Posts: 49
- Joined: Tue Aug 12, 2014 11:21 am
- Location: Lund
- Full name: Alessandro Iavicoli
Re: AdaChess v.30 released
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
-
- Posts: 49
- Joined: Tue Aug 12, 2014 11:21 am
- Location: Lund
- Full name: Alessandro Iavicoli
Re: AdaChess v.30 released
My pleasure. And thanks you too, to play with it!Jamal Bubker wrote: ↑Sun Nov 04, 2018 10:27 am Hi Alessandro !
Thanks for releasing your chess engine