-
-
Save knknkn1162/2bf87553f586e3d93489dda49197df89 to your computer and use it in GitHub Desktop.
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
ABCI_GROUP=gca50104 | |
EMAIL_ADDRESS="aaaaaaaaaaaaaaaaa@gggg.slack.com" # slack email address | |
alias qsubg="qsub -g ${ABCI_GROUP} -j y -cwd -terse -M ${EMAIL_ADDRESS} -m besa" | |
alias qsub_full="qsubg -l rt_F=1" |
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
#!/bin/bash | |
# The role of this script is to get the first job_id to trigger other following qsub commands with hold_jid option. | |
sleep 10 |
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
#!/bin/bash | |
PREV_JOB_ID=$(qsub_gpu1 ${JOBS_PATH}/job/dummy.sh) | |
while true; do | |
CUR_JOB_ID=$(qsub_full -hold_jid ${PREV_JOB_ID} ./test.sh) | |
echo $CUR_JOB_ID | |
PREV_JOB_ID=$CUR_JOB_ID | |
done |
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
# enter interactive node on ABCI | |
$ source loop.sh |
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
#!/bin/bash | |
touch memo | |
echo "test ${JOB_ID}" >> memo | |
sleep 50 |
Author
knknkn1162
commented
Apr 10, 2019
•
- the result is
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment