Running NAMD Jobs on
NAMD jobs must be run as batch jobs under PBS,
submitted via the qsub command. For general information about how to submit
PBS batch jobs on
The PBS job script file for a NAMD job should have
the following format:
#PBS –l cput=hh:mm:ss,ncpus=n
charmrun /usr/local/bin/namd2 ++local +pn configfile
where +pn specifies the number of processors to use, and configfile is the NAMD configuration
file. For example, to run NAMD on 2
processors using the configuration file test1.namd, the PBS job script might look like
the following:
#PBS –l cput=
charmrun /usr/local/bin/namd2 ++local +p2
test1.namd
Specify values for cput
(CPU time required) and ncpus (number of CPUs required) that are
appropriate for your job. The parameters
on the #PBS statement can also be specified on
the qsub command, but it is convenient to put them in the job file
so that they aren’t forgotten. See the man
pages for pbs and qsub
for more details about submitting PBS jobs.
The charmrun command runs the namd2 module on the specified
number of processors. Be sure to use the
full pathname for the namd2 module, /usr/local/bin/namd2.
Once the job script file has been created, the job
can be submitted for execution with the qsub command:
qsub scriptfile
If the job script file does not contain a #PBS
statement, you can specify the job parameters on the qsub
command:
qsub –l cput=
The ncpus resource specification is very important for job
scheduling on
Use the qstat command
to see which jobs are queued/executing on
The NAMD User’s Guide is available online here.