-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature proposal: Linux support #11
Comments
I will try to implement it this weekend. Thanks for testing it in Linux. |
This is for #11 Tested to work in windows 10. Example: python -u lakas.py --match-manager-path F:/CuteChess-CLI/cutechess-cli.exe ...
@Claes1981 can you try again if it will work in Linux. I tried it in windows 10 and it worked. help --match-manager-path MATCH_MANAGER_PATH
Match manager path and/or filename. Example:
cutechess:
--match-manager-path c:/chess/tourney_manager/cutechess/cutechess-cli.exe
duel.py for xboard engines:
--match-manager-path python c:/chess/tourney_manager/duel/duel.py
or
--match-manager-path c:/python3/python c:/chess/tourney_manager/duel/duel.py |
Sorry, same error as before:
(Entering the Cutechess-cli command from the last line direct in the terminal still starts a match) I don't know how Python and Linux handles commands, but does it maybe somehow threat all command options as part of the file name, and therefore respond with " |
Example command line in linux: python3.7 lakas.py --match-manager-path ../cutechess-cli/cutechess-cli --concurrency 6 --optimizer bayesopt --bo-utility-kind ucb --output-data-file bayesopt_ucb.dat --input-data-file bayesopt_ucb.dat --optimizer-log-file opt_log_plot_ucb.txt --base-time-sec 1 --inc-time-sec 0.05 --budget 12 --games-per-budget 6 --engine stockfish_13_linux_x64_modern/stockfish_13_linux_x64_modern --input-param "{'Hash': {'init':16, 'lower':1, 'upper':128}}" --opening-file ./start_opening/ogpt_chess_startpos.epd --opening-file-format epd 2021-03-12 14:52:12,952 | INFO | Lakas v0.36.0 2021-03-12 14:52:12,952 | INFO | input param: OrderedDict([('Hash', {'init': 16, 'lower': 1, 'upper': 128})]) 2021-03-12 14:52:12,953 | INFO | total budget: 12 2021-03-12 14:52:12,953 | INFO | games/budget: 6 2021-03-12 14:52:12,953 | INFO | move control: base_time_sec: 1, inc_time_sec: 0.05, depth=None, nodes=None 2021-03-12 14:52:12,956 | INFO | parameter dimension: 1 2021-03-12 14:52:12,957 | INFO | deterministic function: False 2021-03-12 14:52:12,957 | INFO | use best param: False 2021-03-12 14:52:12,977 | INFO | optimizer: bayesopt, previous budget: 0 2021-03-12 14:52:12,991 | INFO | budget: 1 2021-03-12 14:52:12,991 | INFO | recommended param: {'Hash': 23} 2021-03-12 14:52:12,992 | INFO | best param: {'Hash': 16} 2021-03-12 14:52:12,992 | INFO | option.Hash=16 2021-03-12 14:52:12,992 | INFO | best loss: 0.5 2021-03-12 14:52:12,992 | INFO | init param: {'Hash': 16} 2021-03-12 14:52:12,992 | INFO | recommended vs init 2021-03-12 14:52:21,605 | INFO | actual result: 0.66667 @6 games, minimized result or loss: 0.33333, point of view: recommended 2021-03-12 14:52:21,623 | INFO | budget: 2 2021-03-12 14:52:21,624 | INFO | recommended param: {'Hash': 16} 2021-03-12 14:52:21,624 | INFO | best param: {'Hash': 23} 2021-03-12 14:52:21,624 | INFO | option.Hash=23 2021-03-12 14:52:21,625 | INFO | best loss: 0.5 2021-03-12 14:52:21,625 | INFO | init param: {'Hash': 16} 2021-03-12 14:52:21,625 | INFO | recommended vs init 2021-03-12 14:52:37,560 | INFO | actual result: 0.50000 @6 games, minimized result or loss: 0.50000, point of view: recommended For #11
Version 0.36.0 is uploaded, I tested it in WSL and it worked.
Try it if it will work this time. |
Yes, now it seems to work, thank you! :) The engines started to run before I manually aborted:
|
I noticed it was not as simple as changing line 320 from
tour_manager = Path(Path.cwd(), './tourney_manager/cutechess/cutechess-cli.exe')
to
tour_manager = '/usr/bin/cutechess-cli'
result:
Entering
/usr/bin/cutechess-cli -concurrency 1 -tournament round-robin -pgnout nevergrad_games.pgn fi -each tc=0/0:1+0.5 -engine cmd=/partitions/Sandisk/xfs/media/data/chess/engines/Cfish/Cfish-20100303_pgo_extra name=test option.Threads=8 option.EvalFile=/partitions/Sandisk/xfs/media/data/chess/engines/Stockfish_development_versions/nets/nn-baeb9ef2d183.nnue option.Contempt=11 proto=uci -engine cmd=/partitions/Sandisk/xfs/media/data/chess/engines/Cfish/Cfish-20100303_pgo_extra name=base option.Threads=8 option.EvalFile=/partitions/Sandisk/xfs/media/data/chess/engines/Stockfish_development_versions/nets/nn-baeb9ef2d183.nnue option.Contempt=11 proto=uci -rounds 50 -games 2 -repeat 2 -recover -wait 5000 -openings file=/home/claes/Lakas/start_pos.pgn order=random format=pgn -resign movecount=6 score=700 twosided=true -draw movenumber=30 movecount=6 score=1
on the command line starts a cutechess-cli match as expected, so the command seems to work there.The text was updated successfully, but these errors were encountered: