NAMD: Difference between revisions

Jump to navigation Jump to search
214 bytes added ,  3 years ago
generalize a bit so multicore jobs are discussed also
(Marked this version for translation)
(generalize a bit so multicore jobs are discussed also)
Line 28: Line 28:
Please refer to the [[Running jobs]] page for help on using the SLURM workload manager.
Please refer to the [[Running jobs]] page for help on using the SLURM workload manager.


== Serial jobs == <!--T:15-->
== Serial and threaded jobs == <!--T:15-->
Here is a simple job script for a serial simulation:
Below is a simple job script for a serial simulation (using only one core).  You can increase the number for --cpus-per-task to use more cores, up to the maximum number of cores available on a cluster node.
</translate>
</translate>
{{File
{{File
Line 37: Line 37:
#!/bin/bash
#!/bin/bash
#
#
#SBATCH --ntasks 1           # number of tasks
#SBATCH --cpus-per-task=1
#SBATCH --mem 1024           # memory pool per process
#SBATCH --mem 2048           # memory in Mb, increase as needed   
#SBATCH -o slurm.%N.%j.out    # STDOUT
#SBATCH -o slurm.%N.%j.out    # STDOUT file
#SBATCH -t 0:20:00            # time (D-HH:MM)
#SBATCH -t 0:05:00            # time (D-HH:MM), increase as needed
#SBATCH --account=def-specifyaccount
#SBATCH --account=def-specifyaccount


 
module load StdEnv/2020
module load StdEnv/2020 namd-multicore/2.14
module load namd-multicore/2.14
namd2 +p1 +idlepoll apoa1.namd
namd2 +p$SLURM_CPUS_PER_TASK  +idlepoll apoa1.namd
}}
}}
<translate>
<translate>
cc_staff
239

edits

Navigation menu