HPC Grid Tutorial: How to Run a LS-DYNA Job
Follow these steps to run a LS-DYNA job.
1. Log in to the Grid.
2. From your home directory, copy the supporting tutorial file by typing: cp /wsu/el7/scripts/tutorial/tensile.k .
3. Create the job script. Type: vim jobscript
Press the i key to edit. The following is the contents of a sample job script, enter and edit it as necessary:
#!/bin/bash
# Job name
#SBATCH --job-name=lsdyna
# Submit to the primary QoS
#SBATCH -q primary
# Number of nodes
#SBATCH -N 1
# Request a node with intel
#SBATCH --constraint=intel
# Number of cores
#SBATCH -c 4
# Request memory
#SBATCH --mem=12G
# Mail when the job begins, ends, fails, requeues
#SBATCH --mail-type=ALL
# Where to send the email alerts
#SBATCH --mail-user=xxyyyy@wayne.edu
# Create an output file that will be output_<jobid>.out
#SBATCH -o output_%j.out
# Create an error file that will be error_<jobid>.out
#SBATCH -e errors_%j.err
# Set a maximum time limit
#SBATCH -t 4:0:0
ml ls-dyna
ls-dyna-d i=tensile.k ncpus=4 > outputfile.txt
Press the Esc key and type :wq and then Enter to save and quit.
4. Submit the job: sbatch jobscript
5. The job is submitted. You can check to see the status of the job and what node it is running on by typing: qme
Once the job runs the output can be found in the output.file.txt.
Troubleshooting
1. If you receive an error similar to the following:
*** Error 70021 (OTH 21)
Memory is set 83183390 words short
Memory size is 200000000
Increase the memory size by one of the following
where ##### is the number of words requested:
1) On the command line set - memory=#####
2) In the input file define memory with *KEYWORD
i.e., *KEYWORD ##### or *KEYWORD memory=#####
Then ls-dyna needs more memory. Add 83183390 to 200000000, which produces 283183390. Round up to the next highest value which will be 300000000 and use that for your memory value: i=tensile.k ncpus=4 memory=300000000 > outputfile.txt
Note: This may happen several times a LS-DYNA moves through your setup.
2. If you receive an error with the word Killed then a new job needs to be requested with more memory. To calculate the memory needed in GB for the above example go to this site: https://deviceanalytics.com/memcalc/
- Select 64-bit
- Enter 300000000 in the WORDS section
- BYTES provides 2.24 which is 2.24 GB, you should then round up to 3 GB.
Modify the memory requested in this line to what is required: #SBATCH --mem=12G