Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. #!/bin/bash --login
  2. # Written by Madu Manathunga 10/18/2019
  3.  
  4. ########## Resource Request ##########
  5. #SBATCH --job-name zn_comp_const_opt # you can give your job a name for easier identification (same as -J)
  6. #SBATCH --time=19:59:00 # limit of wall clock time - how long the job will run (same as -t)
  7. #SBATCH --partition=nodes
  8. #SBATCH --nodes=1 # number of different nodes - could be an exact number or a range of nodes (same as -N)
  9. #SBATCH --ntasks=1 # number of tasks - how many tasks (nodes) that you require (same as -n)
  10. #SBATCH --cpus-per-task=8 # number of CPUs (or cores) per task (same as -c)
  11. #SBATCH --mem-per-cpu=4G # memory required per allocated CPU (or core) - amount of memory (in bytes)
  12.  
  13. ######### Submission of g16 job #############
  14. scontrol show job $SLURM_JOB_ID
  15. module load Gaussian/g16
  16. mkdir -p $SCRATCH/g16.${SLURM_JOB_ID}
  17. cp $SLURM_SUBMIT_DIR/${SLURM_JOB_NAME}.com $SCRATCH/g16.${SLURM_JOB_ID}/
  18. cd $SCRATCH/g16.$SLURM_JOB_ID/
  19. srun g16 ${SLURM_JOB_NAME}.com >${SLURM_JOB_NAME}.run.log
  20. cp * $SLURM_SUBMIT_DIR/
  21. cd $SLURM_SUBMIT_DIR
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement