submit.sh 731 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # example for usage on a cluster
  3. # submit from project directory !!!
  4. #$ -S /bin/bash
  5. #$ -N jobname_triallength
  6. #$ -q target_queue.q
  7. #$ -cwd
  8. #$ -o ./log/
  9. #$ -j y
  10. export OPENBLAS_NUM_THREADS=1
  11. export MKL_NUM_THREADS=1
  12. export NUMEXPR_NUM_THREADS=1
  13. export OMP_NUM_THREADS=1
  14. export NUMBA_NUM_THREADS=1
  15. # notify "started $JOB_NAME.$TASK_ID.$JOB_ID"
  16. printf "\n------------------------------------------------------------------\n"
  17. date
  18. echo "/scratch/nst/anaconda3/bin/python -u ./run/triallength.py ${SGE_TASK_ID}"
  19. /scratch/nst/anaconda3/bin/python -u ./run/triallength.py $SGE_TASK_ID
  20. date
  21. printf "\n------------------------------------------------------------------\n"
  22. # notify "finished $JOB_NAME.$TASK_ID.$JOB_ID"