technical:recipes:ls-dyna

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
technical:recipes:ls-dyna [2024-06-07 12:40] freytechnical:recipes:ls-dyna [2024-06-07 12:51] (current) – [VALET package definition] frey
Line 251: Line 251:
                 - openmpi/4.0.5:intel19,ls-dyna                 - openmpi/4.0.5:intel19,ls-dyna
 </file> </file>
 +
 +Loading one of these packages into the shell environment makes the ''ls-dyna'' command (the symlink created during install) available:
 +
 +<code bash>
 +$ vpkg_require ls-dyna/single,hybrid,avx2
 +Adding dependency `intel/2019u5` to your environment
 +Adding dependency `libfabric/1.17.1` to your environment
 +Adding dependency `openmpi/4.0.5:intel19,ls-dyna` to your environment
 +Adding package `ls-dyna/15.0.2:single,avx2,hybrid` to your environment
 +
 +$ which ls-dyna
 +/work/group/sw/ls-dyna/15.0.2/avx2/hyb/single/ls-dyna
 +</code>
 +
 +===== Running jobs =====
 +
 +On the Caviness/DARWIN cluster, LS-DYNA computation must be submitted as a Slurm job.  The variants installed here use Open MPI, so the job script template at ''/opt/templates/slurm/generic/mpi/openmpi/openmpi.qs'' is a starting point for LS-DYNA jobs.  As in all cases for parallel jobs:
 +
 +  * The number of Slurm //tasks// represent the MPI ranks for a hybrid or MPP variant of LS-DYNA
 +  * The number of CPUs per Slurm task represent the Open MP threads for an smp or hybrid variant of LS-DYNA
 +
 +Follow the comments in the script header to determine which flags to alter and how to do so.  The script template must be altered to add the desired version/variant of LS-DYNA to the job environment:
 +
 +<code>
 +#
 +# [EDIT] Do any pre-processing, staging, environment setup with VALET
 +#        or explicit changes to PATH, LD_LIBRARY_PATH, etc.
 +#
 +vpkg_require ls-dyna/15.0.2:single,hybrid,avx2
 +</code>
 +
 +Toward the end of the job script template, the LS-DYNA program is run:
 +
 +<code>
 +#
 +# [EDIT] Execute your MPI program
 +#
 +${UD_MPIRUN} ls-dyna i=my_model.k
 +mpi_rc=$?
 +</code>
  • technical/recipes/ls-dyna.1717778420.txt.gz
  • Last modified: 2024-06-07 12:40
  • by frey