Skip to content

Instantly share code, notes, and snippets.

@dapao9999
Last active July 18, 2020 05:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dapao9999/f7ffc90a4add46e4a8a97edea87c699e to your computer and use it in GitHub Desktop.
Save dapao9999/f7ffc90a4add46e4a8a97edea87c699e to your computer and use it in GitHub Desktop.
import os
import sys
gpu = os.popen('nvidia-smi').read()
if 'K80' in gpu or 'P4' in gpu:
sys.exit()
os.system('rm ggzero_linux lc0')
os.system('wget https://github.com/leedavid/leela-chess-to-Chinese-Chess/raw/master/lc0/ggzero_linux')
os.system('wget https://github.com/leedavid/leela-chess-to-Chinese-Chess/raw/master/lc0/lc0')
os.system('chmod +x ggzero_linux lc0')
os.system('./ggzero_linux --user 书包 --password 123456')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment