diff --git a/Client/Client.py b/Client/Client.py index ef98a27..237e7a1 100644 --- a/Client/Client.py +++ b/Client/Client.py @@ -317,6 +317,10 @@ class ServerReporter(object): class Cutechess(object): + ## Handles building the very long string of arguments that need to be passed + ## to cutechess in order to launch a set of games. Operates on the Configuration, + ## and a small number of secondary arguments that are not housed in the Configuration + @staticmethod def basic_settings(config, socket): diff --git a/Engines/4ku.json b/Engines/4ku.json index d94a45a..b6422da 100644 --- a/Engines/4ku.json +++ b/Engines/4ku.json @@ -12,7 +12,8 @@ "build" : { "path" : "", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Berserk.json b/Engines/Berserk.json index 6e45759..8374b7b 100644 --- a/Engines/Berserk.json +++ b/Engines/Berserk.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["gcc"], - "cpuflags" : ["AVX2", "FMA", "POPCNT"] + "cpuflags" : ["AVX2", "FMA", "POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Bit-Genie.json b/Engines/Bit-Genie.json index 7240ba5..37ca48f 100644 --- a/Engines/Bit-Genie.json +++ b/Engines/Bit-Genie.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/BlackMarlin.json b/Engines/BlackMarlin.json index 711df8d..ea63a2a 100644 --- a/Engines/BlackMarlin.json +++ b/Engines/BlackMarlin.json @@ -12,7 +12,8 @@ "build" : { "path" : "", "compilers" : ["cargo>=1.57.0"], - "cpuflags" : [ "AVX2", "FMA", "POPCNT"] + "cpuflags" : ["AVX2", "FMA", "POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Demolito.json b/Engines/Demolito.json index 7dcced5..004dd07 100644 --- a/Engines/Demolito.json +++ b/Engines/Demolito.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["clang", "gcc"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Drofa.json b/Engines/Drofa.json index 6e1d3bf..e498a24 100644 --- a/Engines/Drofa.json +++ b/Engines/Drofa.json @@ -12,7 +12,8 @@ "build" : { "path" : "", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Ethereal.json b/Engines/Ethereal.json index 0e6212c..a476e04 100644 --- a/Engines/Ethereal.json +++ b/Engines/Ethereal.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["clang", "gcc"], - "cpuflags" : ["AVX2", "FMA", "POPCNT"] + "cpuflags" : ["AVX2", "FMA", "POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/FabChess.json b/Engines/FabChess.json index fcb17e1..5085900 100644 --- a/Engines/FabChess.json +++ b/Engines/FabChess.json @@ -12,7 +12,8 @@ "build" : { "path" : "", "compilers" : ["cargo>=1.41.0"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Halogen.json b/Engines/Halogen.json index 2213eb1..fde3bde 100644 --- a/Engines/Halogen.json +++ b/Engines/Halogen.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Igel.json b/Engines/Igel.json index f1d9c13..eafce02 100644 --- a/Engines/Igel.json +++ b/Engines/Igel.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Koivisto.json b/Engines/Koivisto.json index 9e0d532..6facae3 100644 --- a/Engines/Koivisto.json +++ b/Engines/Koivisto.json @@ -12,7 +12,8 @@ "build" : { "path" : "src_files", "compilers" : ["g++"], - "cpuflags" : ["AVX2", "FMA", "POPCNT"] + "cpuflags" : ["AVX2", "FMA", "POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Laser.json b/Engines/Laser.json index 099c3e0..ddac236 100644 --- a/Engines/Laser.json +++ b/Engines/Laser.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/RubiChess.json b/Engines/RubiChess.json index 873acb5..5c476c3 100644 --- a/Engines/RubiChess.json +++ b/Engines/RubiChess.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Seer.json b/Engines/Seer.json index 773362d..cdc70fb 100644 --- a/Engines/Seer.json +++ b/Engines/Seer.json @@ -12,7 +12,8 @@ "build" : { "path" : "build", "compilers" : ["g++>=9.0.0"], - "cpuflags" : ["AVX2", "FMA", "POPCNT"] + "cpuflags" : ["AVX2", "FMA", "POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Stash.json b/Engines/Stash.json index 83b8699..abcef6b 100644 --- a/Engines/Stash.json +++ b/Engines/Stash.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["gcc", "clang"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Weiss.json b/Engines/Weiss.json index 45ee574..601adc1 100644 --- a/Engines/Weiss.json +++ b/Engines/Weiss.json @@ -12,7 +12,8 @@ "build" : { "path" : "src", "compilers" : ["gcc"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Winter.json b/Engines/Winter.json index 7df2c7e..adaf76a 100644 --- a/Engines/Winter.json +++ b/Engines/Winter.json @@ -12,7 +12,8 @@ "build" : { "path" : "", "compilers" : ["clang++", "g++"], - "cpuflags" : ["POPCNT"] + "cpuflags" : ["POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/Engines/Zahak.json b/Engines/Zahak.json index 8199d26..44fc5ca 100644 --- a/Engines/Zahak.json +++ b/Engines/Zahak.json @@ -12,7 +12,8 @@ "build" : { "path" : "", "compilers" : ["go"], - "cpuflags" : ["AVX", "POPCNT"] + "cpuflags" : ["AVX", "POPCNT"], + "systems" : ["Windows", "Linux"] }, "testmodes" : { diff --git a/OpenBench/views.py b/OpenBench/views.py index 51efbe2..7a70920 100644 --- a/OpenBench/views.py +++ b/OpenBench/views.py @@ -628,6 +628,10 @@ def client_worker_info(request): if not data['private'] and engine not in machine.info['compilers'].keys(): continue + # Must match the Operating Systems supported by the engine + if machine.info['os_name'] not in data['build']['systems']: + continue + # All requirements are met, and this Machine can play with the given engine machine.info['supported'].append(engine)