Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
doku:comsol [2023/02/22 20:42] – [Job script] goldenberg | doku:comsol [2024/04/25 08:54] – [Job script] amelic | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== COMSOL ====== | ====== COMSOL ====== | ||
+ | More information about Comsol GUI applications and Comsol batch jobs here: [[https:// | ||
- | The following case is provided here including the directories-structure\\ | + | The following case is provided here including the directories-structure and the appropriate batch-file: {{ : |
- | and the appropriate batch-file: {{ : | + | |
===== Module ===== | ===== Module ===== | ||
Line 11: | Line 12: | ||
module avail Comsol | module avail Comsol | ||
</ | </ | ||
- | Currently on VSC-4, these versions can be loaded: | + | Currently on VSC-4 and VSC-5, these versions can be loaded: |
* Comsol/5.5 | * Comsol/5.5 | ||
* Comsol/5.6 | * Comsol/5.6 | ||
Line 30: | Line 31: | ||
===== Job script ===== | ===== Job script ===== | ||
- | An example of a Job script is shown below. | + | An example of a job script is provided |
< | < | ||
#!/bin/bash | #!/bin/bash | ||
# slurmsubmit.sh | # slurmsubmit.sh | ||
+ | ##Example for VSC5 zen0512 | ||
#SBATCH --nodes=1 | #SBATCH --nodes=1 | ||
- | #SBATCH --ntasks-per-node=24 | + | #SBATCH --ntasks-per-node=4 |
#SBATCH --job-name=" | #SBATCH --job-name=" | ||
- | #SBATCH --partition=skylake_0384 | + | #SBATCH --partition=zen3_0512 |
- | #SBATCH --qos=skylake_0384 | + | #SBATCH --qos=zen3_0512_devel |
+ | |||
+ | export I_MPI_PIN_RESPECT_CPUSET=0 | ||
+ | export I_MPI_PIN_PROCESSOR_LIST=0-3 | ||
module purge | module purge | ||
- | module load Comsol/5.6 | + | module load intel-mpi/2021.5.0 |
+ | module load Comsol/6.1 | ||
- | MODELTOCOMPUTE=" | + | INPUTFILE=" |
- | path=$(pwd) | + | OUTPUTFILE=" |
+ | BATCHLOG=" | ||
- | INPUTFILE=" | ||
- | OUTPUTFILE=" | ||
- | BATCHLOG=" | ||
- | echo " | + | comsol -mpi intel -np 4 -nn 4 batch slurm -inputfile ${INPUTFILE} -outputfile |
- | echo $INPUTFILE | + | |
- | echo " | + | |
- | echo $OUTPUTFILE | + | |
- | echo " | + | |
- | echo $BATCHLOG | + | |
- | echo "and the usual slurm...out" | + | |
- | # COMSOL' | ||
- | comsol batch -mpibootstrap slurm -inputfile ${INPUTFILE} -outputfile ${OUTPUTFILE} -batchlog ${BATCHLOG} -alivetime 15 -recover -mpidebug 10 | ||
</ | </ | ||
Line 92: | Line 88: | ||
#SBATCH --ntasks-per-node=1 | #SBATCH --ntasks-per-node=1 | ||
#SBATCH --job-name=" | #SBATCH --job-name=" | ||
- | #SBATCH --qos=mem_0096 | + | #SBATCH --qos=skylake_0096 |
#SBATCH --mem=20G | #SBATCH --mem=20G | ||