Last active
December 27, 2023 02:19
-
-
Save Ishotihadus/0aebd7f862b91c0be9a02f1c2fbaf607 to your computer and use it in GitHub Desktop.
ABCI のバッチジョブを 1 行で投げるやつ(zsh 用)
This file contains hidden or 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
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' |
This file contains hidden or 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
#!/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