tool to drive an engine

Moderators: Elijah, Igbo, timetraveller

deeds
I've been banned!
Points: 6 000,00 
Posts: 246
Joined: 08/11/2019, 7:32
Status: Offline (Active 1 Year, 9 Months, 2 Weeks, 6 Days, 7 Hours, 28 Minutes ago)
Topics: 12
Reputation: 218
1
Location: France
Been thanked: 288 times

Re: tool to drive an engine

Post by deeds »

I have added some lines of code into the clustered_engine tool :

Code: Select all

myString = ""
tabString = Split(engineOutput, vbCrLf)
engineOutput = ""
For i = 0 To UBound(tabString)
	If InStr(tabString(i), " depth ", CompareMethod.Text) > 0 And InStr(tabString(i), " pv ", CompareMethod.Text) > 0 Then
		If InStr(tabString(i), " nps ", CompareMethod.Text) > 0 Then
			engineOutput = engineOutput & tabString(i) & vbCrLf
		ElseIf InStr(tabString(i), " time ", CompareMethod.Text) > 0 And InStr(tabString(i), " nodes ", CompareMethod.Text) > 0 Then
			myString = tabString(i).Substring(tabString(i).IndexOf(" time ") + 6)
			myTime = 1 + Int(myString.Substring(0, myString.IndexOf(" ")))

			myString = tabString(i).Substring(tabString(i).IndexOf(" nodes ") + 7)
			myNodes = Int(myString.Substring(0, myString.IndexOf(" ")))

			tabString(i) = Replace(tabString(i), " pv ", " nps " & Format(1000 * myNodes / myTime, 0) & " pv ")
			engineOutput = engineOutput & tabString(i) & vbCrLf
		End If
	End If
Next
Console.WriteLine(engineOutput)
Some engines don't display the nps at low depthes. For example, with IGEL 3, it occurs during all the info strings until depth 18...

Now, no crash when using rybka 4.1 but the searchmoves command isn't handled by this engine. Unfortunately, the rybka 5 cluster executable doesn't work with MS-MPI nor MPICH2.

I'm testing these 2 tools with others engines to check their stability, yet.
deeds
I've been banned!
Points: 6 000,00 
Posts: 246
Joined: 08/11/2019, 7:32
Status: Offline (Active 1 Year, 9 Months, 2 Weeks, 6 Days, 7 Hours, 28 Minutes ago)
Topics: 12
Reputation: 218
1
Location: France
Been thanked: 288 times

Re: tool to drive an engine

Post by deeds »

deeds wrote: 03/10/2021, 20:15 Some engines seem incompatible with the clustered_engine tool :
- rybka 4.1 (don't handle the go depth xx searchmoves xxxx commands)
- houdini 6.03 (number of activations is limited, don't show info strings before D15)
- scorpio 3 (don't quit after analysis)
- minic v2/v3 (searchmoves not implemented)

Some engines can't be used as local engine with the cluster_manager tool :
- asmfish (no command to convert moves suite into fen)
- scorpio 3 (don't quit after multipv command)
- minic v2/v3 (no command to convert moves suite into fen)


About minic info string format, clustered_engine replaces the tbhits and hashfull before the pv.
deeds
I've been banned!
Points: 6 000,00 
Posts: 246
Joined: 08/11/2019, 7:32
Status: Offline (Active 1 Year, 9 Months, 2 Weeks, 6 Days, 7 Hours, 28 Minutes ago)
Topics: 12
Reputation: 218
1
Location: France
Been thanked: 288 times

Re: tool to drive an engine

Post by deeds »

About sugar ai 2.40 and eman 7.40, all their releases (bmi2, avx2, popcount) crash randomly at start on all my hosts. Unusable in a cluster way...
deeds
I've been banned!
Points: 6 000,00 
Posts: 246
Joined: 08/11/2019, 7:32
Status: Offline (Active 1 Year, 9 Months, 2 Weeks, 6 Days, 7 Hours, 28 Minutes ago)
Topics: 12
Reputation: 218
1
Location: France
Been thanked: 288 times

Re: tool to drive an engine

Post by deeds »

I have just added the source codes of both tools into the MEGA account. Tools executables are updated too.

ENJOY !
Post Reply

Return to “Requests Section”