HPC/Applications/nwchem

From CNM Wiki
< HPC‎ | Applications
Revision as of 13:30, March 15, 2013 by Stern (talk | contribs) (Created page with "== Introduction == * [http://www.nwchem-sw.org/index.php/Release61:NWChem_Documentation NWChem 6.1 User Documentation] == Considerations on Carbon == ; [http://www.nwchem-sw....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Considerations on Carbon

SCRATCH_DIR
The *.nw input file is static, which makes it difficult to point to temporary directories that change from call to call. As a solution, I suggest to create a symbolic link in the job script prior to running NWChem. See $NWCHEM_HOME/sample.job for the full file.
# Avoid quota overruns. 
# (1) Add the line "scratch_dir ./scratch" to the input file.
# (2) Provide this directory as local symlink; choose one of:
#   - $SANDBOX: distributed scratch (not auto-cleaned, shared file system)
#   - $TMPDIR node-local (auto-cleaned, slower)

dir=$SANDBOX/$PBS_JOBID
#dir=$TMPDIR

link=scratch
mkdir -p $dir
ln -snf $dir $link

mpirun -machinefile $PBS_NODEFILE -np $PBS_NP \
         nwchem foo.nw

# clean sandbox (won't be reached if job terminates for time)
[[ $dir =~ $SANDBOX/* ]] && rm -r $dir
MEMORY
The default memory allocation is far smaller than useful on Carbon. Raise it using, e.g.:
memory total 3200 mb