<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=LSDYNA</id>
	<title>LSDYNA - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?action=history&amp;feed=atom&amp;title=LSDYNA"/>
	<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=LSDYNA&amp;action=history"/>
	<updated>2026-05-19T02:24:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.4</generator>
	<entry>
		<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?title=LSDYNA&amp;diff=118&amp;oldid=prev</id>
		<title>James: Text replacement - &quot;[pP][bB][sS]&quot; to &quot;SLURM&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=LSDYNA&amp;diff=118&amp;oldid=prev"/>
		<updated>2022-10-27T19:31:36Z</updated>

		<summary type="html">&lt;p&gt;Text replacement - &amp;quot;[pP][bB][sS]&amp;quot; to &amp;quot;SLURM&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:31, 27 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l19&quot;&gt;Line 19:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 19:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As is the case with most long running applications run at the CUNY HPC Center, whether parallel&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As is the case with most long running applications run at the CUNY HPC Center, whether parallel&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;or serial, LS-DYNA jobs are run using a &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;PBS &lt;/del&gt;batch job submission script.  Here we provide some&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;or serial, LS-DYNA jobs are run using a &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SLURM &lt;/ins&gt;batch job submission script.  Here we provide some&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;example scripts for both serial and parallel execution.   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;example scripts for both serial and parallel execution.   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>James</name></author>
	</entry>
	<entry>
		<id>https://wiki.csi.cuny.edu/cunyhpc/index.php?title=LSDYNA&amp;diff=90&amp;oldid=prev</id>
		<title>James: Created page with &quot; Both 32-bit and 64-bit executables in both serial and parallel versions are provided.  The MPI parallel versions use OpenMPI as their MPI parallel library, the HPC Center&#039;s default version of MPI.  The serial executable can also be run in OpenMP (not to be confused with OpenMPI) node- local SMP-parallel mode.  The names of the executable files in the &#039;/share/apps/lsdyna/default/bin&#039; directory are:  &lt;pre&gt; ls-dyna_32.exe  ls-dyna_64.exe  ls-dyna-mpp32.exe  ls-dyna_mpp64.e...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.csi.cuny.edu/cunyhpc/index.php?title=LSDYNA&amp;diff=90&amp;oldid=prev"/>
		<updated>2022-10-20T20:08:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; Both 32-bit and 64-bit executables in both serial and parallel versions are provided.  The MPI parallel versions use OpenMPI as their MPI parallel library, the HPC Center&amp;#039;s default version of MPI.  The serial executable can also be run in OpenMP (not to be confused with OpenMPI) node- local SMP-parallel mode.  The names of the executable files in the &amp;#039;/share/apps/lsdyna/default/bin&amp;#039; directory are:  &amp;lt;pre&amp;gt; ls-dyna_32.exe  ls-dyna_64.exe  ls-dyna-mpp32.exe  ls-dyna_mpp64.e...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
Both 32-bit and 64-bit executables in both serial and parallel versions are provided.  The MPI&lt;br /&gt;
parallel versions use OpenMPI as their MPI parallel library, the HPC Center&amp;#039;s default version of&lt;br /&gt;
MPI.  The serial executable can also be run in OpenMP (not to be confused with OpenMPI) node-&lt;br /&gt;
local SMP-parallel mode.  The names of the executable files in the &amp;#039;/share/apps/lsdyna/default/bin&amp;#039;&lt;br /&gt;
directory are:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ls-dyna_32.exe  ls-dyna_64.exe  ls-dyna-mpp32.exe  ls-dyna_mpp64.exe&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Those with the string &amp;#039;mpp&amp;#039; in the name are the MPI distributed parallel versions of the code. The&lt;br /&gt;
integer (32 or 64) designates the precision of the build.  In the examples below, depending on the&lt;br /&gt;
type of script being submitted (serial or parallel, 32- or 64-bit), a different executable will be &lt;br /&gt;
chosen.   The scaling properties of LS-DYNA in parallel mode are limited, and users should not&lt;br /&gt;
carelessly submit parallel jobs requesting large numbers of cores without understanding how&lt;br /&gt;
their job will scale.  A large 128 core job that runs only 5% faster than a 64 core job is a waste&lt;br /&gt;
of resources.  Please examine the scaling properties of your particular job before scaling up.&lt;br /&gt;
&lt;br /&gt;
As is the case with most long running applications run at the CUNY HPC Center, whether parallel&lt;br /&gt;
or serial, LS-DYNA jobs are run using a PBS batch job submission script.  Here we provide some&lt;br /&gt;
example scripts for both serial and parallel execution.  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note that before using this script you will need to setup the environment for LS-DYNA. On Andy &lt;br /&gt;
&amp;quot;[[Main_Page#Modules.2C_Managing_Your_CUNY_HPC_Center_Environment|modules]]&amp;quot; is used to manage environments. Setting up LS-DYNA is done with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
module load ls-dyna&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First an example serial execution script&lt;br /&gt;
(called say &amp;#039;airbag.job&amp;#039;) run at 64-bits using the LS-DYNA &amp;#039;airbag&amp;#039; example (&amp;#039;airbag.deplo.k&amp;#039;) from&lt;br /&gt;
the examples directory above as the input.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --partition production_qdr&lt;br /&gt;
#SBATCH --job-name ls-dyna_serial&lt;br /&gt;
#SBATCH --nodes=1&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
#SBATCH --mem=2880&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Find out name of master execution host (compute node)&lt;br /&gt;
echo -n &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SLURM Master compute node is: &amp;quot;&lt;br /&gt;
hostname&lt;br /&gt;
&lt;br /&gt;
# You must explicitly change to the working directory in SLURM&lt;br /&gt;
cd $SLURM_SUBMIT_DIR&lt;br /&gt;
&lt;br /&gt;
# Point to the execution directory to run&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Begin LS-DYNA Serial Run ...&amp;quot;&lt;br /&gt;
ls-dyna_64.exe i=airbag.deploy.k memory=2000m&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; End   LS-DYNA Serial Run ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Details on the SLURM options at the head of the this script file are discussion below,&lt;br /&gt;
but in summary &amp;#039;-q production_qdr&amp;#039;  selects the routing queue into which the job will&lt;br /&gt;
be placed, &amp;#039;-N ls-dyna_serial&amp;#039; sets this job&amp;#039;s name, &amp;#039;nodes=1 ntasks=1 mem=2880&amp;#039;&lt;br /&gt;
nodes-requests 1 SLURM resource chunk that includes 1 cpu and 2880 MBytes of memory, &lt;br /&gt;
allows SLURM to put the resources needed for the job any where on the&lt;br /&gt;
ANDY system.&lt;br /&gt;
&lt;br /&gt;
The LS-DYNA command line sets the input file to be used and the amount of in-core&lt;br /&gt;
memory that is available to the job.  Note that this executable does NOT include the&lt;br /&gt;
string &amp;#039;mpp&amp;#039; which means that it is not the MPI executable.  Users can copy the &amp;#039;airbag.deploy.k&amp;#039;&lt;br /&gt;
file from the examples directory and cut-and-paste this script to run this job.  It &lt;br /&gt;
takes a relatively sort time to run.  The SLURM command for submitting the job would be:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qsub airbag.job&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here is a SLURM script that runs a 16 processor (core) MPI job.  This script is&lt;br /&gt;
set to run the TopCrunch &amp;#039;3cars&amp;#039; benchmark which is relatively long-running using&lt;br /&gt;
MPI on 16 processors.  There are a few important differences in this script.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#SBATCH --partition production_qdr&lt;br /&gt;
#SBATCH --job name ls-dyna_mpi&lt;br /&gt;
#SBATCH --nodes=1&lt;br /&gt;
#SBATCH --ntasks=1&lt;br /&gt;
#SBATCH --mem=2880&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Find out name of master execution host (compute node)&lt;br /&gt;
echo -n &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; SLURM Master compute node is: &amp;quot;&lt;br /&gt;
hostname&lt;br /&gt;
&lt;br /&gt;
# You must explicitly change to the working directory in SLURM&lt;br /&gt;
cd $SLURM_SUBMIT_DIR&lt;br /&gt;
&lt;br /&gt;
# Point to the execution directory to run&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Begin LS-DYNA MPI Parallel Run ...&amp;quot;&lt;br /&gt;
mpirun -np 16 ls-dyna_mpp64.exe i=3cars_shell2_150ms.k ntasks=16 memory=2000m&lt;br /&gt;
echo &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt; End   LS-DYNA MPI Parallel Run ...&amp;quot;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Focusing on the difference in this script relative to the serial SLURM script above.  First, the &amp;#039;-l select&amp;#039; line&lt;br /&gt;
requests not 1 SLURM resource chunk, but 16 each with 1 cpu (core) and 2880 MBytes of memory.  This&lt;br /&gt;
provides the necessary resources to run our 16 processor MPI-parallel job.   Next, the LS-DYNA command&lt;br /&gt;
line is different.  The LS-DYNA MPI-parallel executable is used (ls-dyna_mpp64.exe), and it is run with &lt;br /&gt;
the help of the OpenMPI job submission command &amp;#039;mpirun&amp;#039; which sets the number of processors&lt;br /&gt;
and the location of those processors on the system.  The actually LS-DYNA key words also add the&lt;br /&gt;
string &amp;#039;ncpu=16&amp;#039;  to instruct LS-DYNA that this is to be a parallel run.&lt;br /&gt;
&lt;br /&gt;
Running in parallel on 16 cores in 64-bit mode on ANDY, the &amp;#039;3cars&amp;#039; case takes about 9181 seconds&lt;br /&gt;
of elapsed time to complete.   If the user would like to run this job, they can grab the input files out&lt;br /&gt;
of the directory &amp;#039;/share/apps/lsdyna/default/examples/3cars&amp;#039; on ANDY and use the above script.&lt;/div&gt;</summary>
		<author><name>James</name></author>
	</entry>
</feed>