Schachcomputer.info Community

Schachcomputer.info Community (https://www.schachcomputer.info/forum/index.php)
-   Die ganze Welt der Schachcomputer / World of chess computers (https://www.schachcomputer.info/forum/forumdisplay.php?f=2)
-   -   Tipp: Cray Blitz (https://www.schachcomputer.info/forum/showthread.php?t=7082)

user_2141 27.03.2024 13:26

AW: Cray Blitz
 
Zitieren:

Zitat von Hans21 (Beitrag 125371)
Noch was: Ich wollte mal schauen, ob und wie man mit dem veröffentlichten Code das Multiprocessing ermöglichen könnte.

Ein relevantes Code-Stück ist z.B. in "options.f":

"...
c
c------------------------------< mp : enable multiprocessing
c
1700 continue
if(busy .ne. 0) go to 9998
oldncpus=ncpus
if(atext(3) .ne. blank) then
col=4
ncpus=scan(col)
write(3,1720) ncpus
if(ncpus .gt. 1) cputim=0
snodes=snodes/oldncpus*ncpus
endif
print 1720, ncpus
1720 format(1x,'multiprocessing using',i3,' processors.')
c call tsktune('MAXCPU',aio+ncpus,'DBRELEAS',aio+ncpus,
c * 'DBACTIVE',0,'HOLDTIME',1000,'SAMPLE',1000)
if(ncpus .gt. oldncpus) then
print 1725,ncpus-oldncpus
1725 format(1x,'creating ',i2,' new tasks.')
do 1730 i=1,ncpus-oldncpus
tskarray((i-1)*3+1)=3
tskarray((i-1)*3+2)=0
tskarray((i-1)*3+3)=i
c call tskstart(tskarray((i-1)*3+1),control,0)
1730 continue
else if(ncpus .lt. oldncpus) then
print 1735, oldncpus-ncpus
1735 format(1x,'terminating ',i2,' old tasks.')
do 1740, i=oldncpus,ncpus+1,-1
stop(i)=-9999
1740 continue
endif
go to 9999
c
..."

Dort sieht man, dass u.a. die Zeilen mit "call tskstart(..." auskommentiert sind (ein "c" am Zeilenanfang). Im Weiteren gibt auch keinen Implementationscode für "tskstart".

Es scheint, dass die Multiprocessing-Möglichkeit vor der Veröffentlichung des Codes gezielt entfernt wurde.

Falls das jemand anders sieht, bin ich um eine Rückmeldung dankbar.

Hans

Offenbar ist "tskstart" Teil der FORTRAN-Bibliotheksroutine in Cray-Umgebungen mit Multitasking. Ich versuche nun alte Manuals dazu zu finden. Aus meiner Sicht ist der "Reiz" von Cray-Blitz der Algorithmus zur dynamischen Baumaufteilung. Wenn das Programm nur auf einer CPU läuft kann das Programm seine Stärke nicht ausspielen.

Falls jemand dazu mehr Informationen hat, sind diese willkommen.

AlexS 27.03.2024 15:55

AW: Cray Blitz
 
Ich habe noch einen kleinen Fehler gefunden, der dafür verantwortlich war, dass Cray Blitz in seltenen Fällen aufgehört hat zu spielen.

Bitte ladet die Konfiguration nochmal runter: https://www.mediafire.com/file/1hjb8...ig_v4.zip/file

Zumindest unter Arena läuft die Konfiguration nun auch als WB engine scheinbar stabil, dazu einfach inbetween.exe als WB engine einbinden. Dann lässt sich auch der Rechenvorgang im Debug-Fenster betrachten.

Code:

1b := 1=B
ersetzt durch
Code:

a2a1b := a2a1=B
b2b1b := b2b1=B
c2c1b := c2c1=B
d2d1b := d2d1=B
e2e1b := e2e1=B
f2f1b := f2a1=B
g2g1b := g2g1=B
h2h1b := h2h1=B


Tibono 27.03.2024 18:14

AW: Cray Blitz
 
Thank you Alex for all the shared good work.

For those who choose to run the CECP protocol (Winboard/InBetween), you might want to add, at the end of both black&white .ini files:
Code:

I resign, xboard := \nresign
This doesn't work with UCI protocol (the GUI is in charge).
Regards,
Eric

Wandersleben 27.03.2024 20:44

AW: Cray Blitz
 
Code:

a2a1b := a2a1=B
b2b1b := b2b1=B
c2c1b := c2c1=B
d2d1b := d2d1=B
e2e1b := e2e1=B
f2f1b := f2a1=B
g2g1b := g2g1=B
h2h1b := h2h1=B

Na, wie gut, dass die Dame Q und nicht D heißt, damit das d nicht auch noch verwechselt werden kann!

Alex, an dich geht tausendfacher dank!

ps 21:05 uhr.
Welch ein zufall! Gerade schau ich das laufende turnier mit spießrutenlauf und die partie hing mit "illegal move", weil der gegnerische läufer einen zug Bc1b2 und inbetweeen die 1b falsch interpretierte.
Alex, du warst schneller!

AlexS 27.03.2024 22:03

AW: Cray Blitz
 
Zitieren:

Zitat von Wandersleben (Beitrag 125458)
Alex, du warst schneller!

Aber leider nicht schnell genug :)

Tibono 04.04.2024 15:55

AW: Cray Blitz
 
Zitieren:

Zitat von AlexS (Beitrag 125286)
Für alle die bei Talkchess nicht mitlesen...

https://talkchess.com/viewtopic.php?t=83496

Hello,
In the original thread (reminded above link) I suggested a way to conveniently set three useful parameters (color to play, thinking time and opening book score margin) using an "ini" file for the WB version.
MfG,
Eric

fhub 04.04.2024 17:32

AW: Cray Blitz
 
1 Anhang/Anhänge
Hallo Eric,
Zitieren:

Zitat von Tibono (Beitrag 125595)
In the original thread (reminded above link) I suggested a way to conveniently set three useful parameters (color to play, thinking time and opening book score margin) using an "ini" file for the WB version.

also das ist doch etwas kompliziert. ;)

Ich habe das durch 2 eigene InBetween-Dateien gelöst (umbenannt in CrayBlitz_Black.exe und CrayBlitz_White.exe), wobei dann natürlich auch die ini-Dateien die gleiche Namen haben müssen (also CrayBlitz_Black.ini und CrayBlitz_White.ini).
Dadurch kann man die gewünschte Farbe direkt auswählen, und auch Änderungen in diesen ini-Dateien sind innerhalb von Arena durchführbar.

Außerdem habe ich auch die ini-Dateien ziemlich verändert, sodaß nun in Arena im Infofenster unterhalb des Schachbretts der Rechenvorgang von Cray-Blitz vollständig sichtbar ist und man nicht mehr das Debugfenster (F4) benötigt.
Dazu ist allerdings die neueste InBetween-Version (1.11) nötig, die einige Erweiterungen beinhaltet und ohnehin stabiler läuft.

Am besten funktioniert das mit der alten Arena-Version 1.1, es klappt aber auch mit Arena 3.51, nur wird dort die laufende Zugzeit nicht angezeigt (anscheinend geht diese Arena-Version von einer anderen Reihenfolge in der WB-Ausgabe aus). Bei Zeiten über 10 min/Zug dürfte mein Trick in den ini-Dateien allerdings versagen - hab nicht genug Geduld um das auszuprobieren. ;)

Falls das jemand ausprobieren will - meine beiden Konfigurationen sind im Anhang: einfach ins Verzeichnis mit den offiziellen Cray-Blitz-Dateien (EXE und Bücher) kopieren und in Arena CrayBlitz_Black/White.exe als WB-Engine auswählen.
Die Anzeige im Arena-Infofenster läßt sich konfigurieren, ich habe da (in Arena 1.1) folgende 3 Anzeigen aktiviert: Searchdepth, Time und Principle variation.

So sieht das dann aus:
https://i.postimg.cc/YqtnPwK7/Cray-Blitz.jpg

Grüße,
Franz

Tibono 04.04.2024 19:31

AW: Cray Blitz
 
Nice enhancement to the InBetween ini files for better analysis display, thanks Franz for this trick.
I copied the relevant lines you added, and got the same much better analysis display in Arena - therefore I can remove my powershell "tail" display of the log. Great!
Works fine as well with the Arena 3.0 version I use.

Even if my solution looks a bit complicated in its design, once the setup is done there is no more any complication for using it. I like the fact I can manage the main settings in a single, short ini file; and there is no need to select across two engines, one to play white or another one to play black. All in one, it is in the ini file.

Grüße,
Eric

fhub 04.04.2024 19:52

AW: Cray Blitz
 
Zitieren:

Zitat von Tibono (Beitrag 125600)
I like the fact I can manage the main settings in a single, short ini file; and there is no need to select across two engines, one to play white or another one to play black. All in one, it is in the ini file.

Yes Eric, but you still have to edit/modify your ini-file to switch between CrayBlitz playing White or Black.

I've tried to find a method that allows to use only one single configuration and just use CrayBlitz like any other engine, i.e. start with white or just let CrayBlitz start with white, but InBetween is simply not powerful enough to make this possible. Also for a perfect analysis output it would be necessary to change the order of the engine's output values, but also this is impossible in InBetween.
Maybe I should write a completely new interface for CrayBlitz that handles all these cases ... ;)

Regards,
Franz

Mythbuster 04.04.2024 20:07

AW: Cray Blitz
 
Zitieren:

Zitat von fhub (Beitrag 125602)
Maybe I should write a completely new interface for CrayBlitz that handles all these cases ... ;)

Definitiv! Ein "Cray Blitz Paket", das jeder Dödel (ich) einfach nutzen kann ... :worship::worship::worship:


Alle Zeitangaben in WEZ +2. Es ist jetzt 02:04 Uhr.

Powered by vBulletin (Deutsch)
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
©Schachcomputer.info