Difference between revisions of "JUSTUS2/Software/Dalton"

From bwHPC Wiki
Jump to: navigation, search
(Version-Specific Information)
(Examples)
Line 87: Line 87:
 
<br>
 
<br>
 
= Examples =
 
= Examples =
  +
== bwHPC examples ==
 
  +
As with all processes that require more than a few minutes to run, non-trivial compute jobs must be submitted to the cluster queuing system.
You can copy a simple interactive example to your '''workspace''' and run it, using 'msub'
 
  +
  +
Example scripts are available in the directory <span style="background:#edeae2;margin:2px;padding:1px;border:1px dotted #808080">$DALTON_EXA_DIR</span>:
 
<pre>
 
<pre>
  +
$ module show chem/dalton # show environment variables, which will be available after 'module load'
$ cd $(ws_find dalton_repo)
 
  +
$ module load chem/dalton # load module
$ cp $DALTON_EXA_DIR/bwunicluster-dalton-example.moab .
 
  +
$ ls $DALTON_EXA_DIR # show content of directory $DALTON_EXA_DIR
$ cp bwunicluster-dalton-example.moab mydaltonjob.moab
 
§ vi mydaltonjob.moab # do your own modifications
+
$ cat $DALTON_EXA_DIR/README # show examples README
$ msub mydaltonjob.moab # start job submission
 
 
</pre>
 
</pre>
It is strongly recommended to use [[#Dalton-Specific Environments|$DALTON_EXA_DIR]] to find the bwHPC examples.
 
<br>
 
=== bwHPC Moab submit script ===
 
Here is an excerpt from the supplied bwunicluster-dalton-example.moab script as found in $DALTON_EXA_DIR.
 
{{bwFrameA|
 
<source lang="bash">
 
[...]
 
echo " "
 
echo "### Copying input test files for job (if required):"
 
echo " "
 
cp -vr ${DALTON_EXA_DIR}/ethane-blyp-benchmark.{dal,mol} .
 
   
  +
Run several example jobs on '''JUSTUS 2''':
echo " "
 
  +
<pre>
echo "### Redefine TMPDIR for storing temporary Dalton files ..."
 
  +
$ module load chem/dalton # load module
echo " "
 
  +
$ WORKSPACE=`ws_allocate dalton 3` # allocate workspace
export TMPDIR="${TMP_WORK_DIR}/dalton_tmp"
 
  +
$ cd $WORKSPACE # change to workspace
export DALTON_TMPDIR="${TMP_WORK_DIR}/dalton_tmp"
 
  +
$ cp -a $DALTON_HOME/bwhpc-examples . # copy example files to workspace
echo "TMPDIR = ${TMPDIR}"
 
  +
$ cd bwhpc-examples # change to test directory
echo "DALTON_TMPDIR = ${TMPDIR}"
 
  +
$ sbatch dalton-2020.0.slurm # submit job
echo " "
 
  +
$ squeue # obtain JOBID
echo "### Calling dalton command ..."
 
  +
$ scontrol show job <JOBID> # check state of job
echo " "
 
  +
$ ls # when job finishes the results will be visible in this directory
 
  +
</pre>
# Here is the main Dalton command showing how to run a regular
 
# Dalton job (mpirun is invoked within the 'dalton' script automatically).
 
# For details on the Dalton job see 'ethane-blyp-benchmark.info'.
 
# Example job input: ethane-blyp-benchmark.{dal,mol}
 
# Example job output: bwhpc-example.out ethane-blyp-benchmark.tar.gz.
 
export workdir=${TMP_WORK_DIR}
 
cd ${TMP_WORK_DIR}
 
time $DALTON_BIN_DIR/dalton -N ${MOAB_PROCCOUNT} -o bwhpc-example.out ethane-blyp-benchmark.dal ethane-blyp-benchmark.mol
 
[...]
 
</source>
 
}}
 
<br>
 
   
 
= Useful links =
 
= Useful links =

Revision as of 16:32, 18 March 2021

Description Content
module load chem/dalton
Availability BwForCluster_JUSTUS_2
License Open-source software, distributed under the GNU Lesser General Public License (LGPL). More...
Citing Publications
Links Homepage | Documentation
Graphical Interface No

1 Description

Dalton (named after John Dalton) is an ab initio quantum chemistry computer program designed to to allow convenient, automated determination of a large number of molecular properties based on an HF, HF-srDFT, DFT, MP2, CC, CI, MCSCF, or MC-srDFT reference wave function. For additional information on features please visit the Description of the Dalton suite features web page.

2 Availability

Dalton is available on selected bwHPC-Clusters. A complete list of versions currently installed on the bwHPC-Clusters can be obtained from the Cluster Information System (CIS).

In order to check which versions of Dalton are installed on the compute cluster, run the following command:

$ module avail chem/dalton

3 License

Dalton is free, open-source software released under the GNU Lesser General Public License (LGPL). Anyone interested in using the Dalton program suite must read the conditions described in its license agreement.

4 Usage

4.1 Loading the module

You can load the default version of Dalton with the command:

$ module load chem/dalton

The module will try to load modules it needs to function (e.g. compiler, mpi, numlibs). If loading the module fails, check if you have already loaded one of those modules, but not in the version needed for Dalton. If you wish to load a specific (older) version (if available), you can do so using e.g. 'module load chem/dalton/version' to load the version you desires.

$ module avail chem/dalton
------------------------ /opt/bwhpc/common/modulefiles -------------------------
chem/dalton/2013
$ module load chem/dalton/2013

4.2 Program Binaries

You can find the Dalton binaries in the main folder of the Dalton system. After loading the Dalton module ('module load chem/dalton/version') it's path is also set to the local $PATH- and $DALTON_BIN_DIR environments.
$DALTON_BIN_DIR=/opt/bwhpc/common/chem/

$ : Example with Dalton 2013
$ echo $DALTON_BIN_DIR
/opt/bwhpc/common/chem/dalton/2013/bin
$ ls -F $DALTON_BIN_DIR
basis/   DALTON.STAT  GIT_HASH   lsdalton.x*      tools/
dalton*  dalton.x*    lsdalton*  lslib_tester.x*  VERSION
  • A '/' at the end of a file name indicates a directory/folder.
  • '*' is an executable file.

4.3 Disk Usage

Scratch files are written to the current directory by default. Please change to a local directory or to your local workspace (preferred) before starting your calculations.

'dalton_repo' is an example name of a repository you created by using the command 'ws_allocate'.

$ cd $(ws_find dalton_repo)
['your-id'-dalton_repo-0]$ pwd
/work/workspace/scratch/'your-id'-dalton_repo-0
['your-id'-dalton_repo-0]$ 


5 Examples

As with all processes that require more than a few minutes to run, non-trivial compute jobs must be submitted to the cluster queuing system.

Example scripts are available in the directory $DALTON_EXA_DIR:

$ module show chem/dalton                # show environment variables, which will be available after 'module load'
$ module load chem/dalton                # load module
$ ls $DALTON_EXA_DIR                     # show content of directory $DALTON_EXA_DIR
$ cat $DALTON_EXA_DIR/README             # show examples README

Run several example jobs on JUSTUS 2:

$ module load chem/dalton                           # load module
$ WORKSPACE=`ws_allocate dalton 3`                  # allocate workspace
$ cd $WORKSPACE                                     # change to workspace
$ cp -a $DALTON_HOME/bwhpc-examples .               # copy example files to workspace
$ cd bwhpc-examples                                 # change to test directory
$ sbatch dalton-2020.0.slurm                        # submit job
$ squeue                                            # obtain JOBID
$ scontrol show job <JOBID>                         # check state of job
$ ls                                                # when job finishes the results will be visible in this directory

6 Useful links