Skip to content

Commit

Permalink
Working version
Browse files Browse the repository at this point in the history
  • Loading branch information
vondele committed Jul 13, 2024
1 parent 1a0c9d2 commit 9728816
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
11 changes: 1 addition & 10 deletions worker/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import multiprocessing
import os
import platform
import pprint
import random
import re
import shutil
Expand Down Expand Up @@ -504,6 +503,7 @@ def unzip(blob, save_dir):
os.chdir(cd)
return file_list


def clang_props():
"""Parse the output of clang++ -E - -march=native -### and extract the available clang properties"""
with subprocess.Popen(
Expand Down Expand Up @@ -900,10 +900,6 @@ def result_to_score(_result):
odd = round_
even = round_ + 1
if odd in rounds.keys() and even in rounds.keys():
print("In update pentanomial")
pprint.pp(
rounds
) # TODO TODO https://github.com/Disservin/fast-chess/issues/532
assert rounds[odd]["white"][0:3] == "New"
assert rounds[odd]["white"] == rounds[even]["black"]
assert rounds[odd]["black"] == rounds[even]["white"]
Expand Down Expand Up @@ -941,10 +937,6 @@ def results_to_score(results):
s5 = results_to_score(rounds["pentanomial"]) + results_to_score(rounds["trinomial"])
assert sum(LDW) == 2 * sum(rounds["pentanomial"]) + sum(rounds["trinomial"])
epsilon = 1e-4
print(
"In validate pentanomial: ", wld, s3, s5
) # TODO TODO https://github.com/Disservin/fast-chess/issues/532
pprint.pp(rounds)
assert abs(s5 - s3) < epsilon


Expand Down Expand Up @@ -1394,7 +1386,6 @@ def parse_options(s):
blob = download_from_github(zipball)
unzip(blob, testing_dir)


# Clean up the old networks (keeping the num_bkps most recent)
num_bkps = 10
for old_net in sorted(
Expand Down
2 changes: 1 addition & 1 deletion worker/sri.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"__version": 241, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "il9Br64uOo/0piT8KevgJ2Vp9m699ctH6YcQAihh41dOgUZCdH1Lvux11RvzqHL6", "games.py": "AEQ9jED4Th8SjCTlJTT0PnKRgcjRxAhsa4HwHu7IQyWjhWYcp3CmDqNsK8x1xuAt"}
{"__version": 241, "updater.py": "Mg+pWOgGA0gSo2TuXuuLCWLzwGwH91rsW1W3ixg3jYauHQpRMtNdGnCfuD1GqOhV", "worker.py": "DWKGDT7TB7N0GkCMAkKMWQxIdHqdwOSaRyoD95N3AmqYjVj9mQImpB6Xn0LiBbG9", "games.py": "AEQ9jED4Th8SjCTlJTT0PnKRgcjRxAhsa4HwHu7IQyWjhWYcp3CmDqNsK8x1xuAt"}
2 changes: 1 addition & 1 deletion worker/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ def setup_fastchess(worker_dir, compiler):
try:
fastchess_sha = "47930ae1a2350cdf8d3a58cba4e1128a461249b8"
username = "Disservin"
fastchess_sha = "c5ae41a86e93671548f0a06107435c001d5a4222"
fastchess_sha = "8ee66a8449ac09e72abe2b02227075a094c792f4"
username = "gahtan-syarif"
item_url = (
"https://api.github.com/repos/"
Expand Down

0 comments on commit 9728816

Please sign in to comment.