Created
April 19, 2018 12:10
-
-
Save CrossR/cf53d240b0fa50bb4967275fa753a51a to your computer and use it in GitHub Desktop.
Script to run SC2.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#$ -l h_rt=08:00:00 | |
#$ -l coproc_k80=2 | |
#$ -l ports=1 | |
# Load modules | |
module add singularity/2.4 | |
module add cuda/9.0.176 | |
# Run program via Singularity | |
DATE=$(date +"%Y-%m-%d") | |
TIME=$(date +"%H%M") | |
DATE_TIME=${DATE}_${TIME} | |
HOME_DIR="/home/CrossR" | |
LOG_FILE="${HOME_DIR}/logs/pysc2_${DATE}_${TIME}.log" | |
STARCRAFT_IMG="/nobackup/sc2_image/starcraft.simg" | |
SCRIPT_TO_RUN="${HOME_DIR}/git/project/CNN/run.py" | |
SCRIPT_ARGS="--map_name MoveToBeacon --model test_model --envs 64" | |
echo "Starting script..." | |
singularity exec --nv ${STARCRAFT_IMG} python ${SCRIPT_TO_RUN} ${SCRIPT_ARGS} >> ${LOG_FILE} 2>&1 | |
echo "Finished script." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment