Skip to content

Instantly share code, notes, and snippets.

@Ishotihadus
Last active December 27, 2023 02:19
Show Gist options
  • Save Ishotihadus/0aebd7f862b91c0be9a02f1c2fbaf607 to your computer and use it in GitHub Desktop.
Save Ishotihadus/0aebd7f862b91c0be9a02f1c2fbaf607 to your computer and use it in GitHub Desktop.
ABCI のバッチジョブを 1 行で投げるやつ(zsh 用)
qs -l USE_SSH=1 -l rt_F=1 -l h_rt=72:00:00 -g gax12345 'module load cuda/12.3 cudnn/8.9 && python train.py'
#!/usr/bin/env zsh
set -x
mkdir -p $HOME/.cache/qs
FILENAME=$HOME/.cache/qs/qs$(date +%m%d-%H%M%S_%N)
echo '#!/usr/bin/env zsh' >> "$FILENAME"
echo 'set -x'
echo "rm '$FILENAME'" >> "$FILENAME"
echo 'source /etc/profile.d/modules.sh' >> "$FILENAME"
echo "$@[-1]" >> "$FILENAME"
chmod +x "$FILENAME"
qsub -j y -cwd -V $@[1,-2] "$FILENAME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment