-
-
August 7, 2023 at 4:17 pm
jsarlo
SubscriberI am working with AnsysEM 2022r2. I am a sys admin working with a researcher. We are trying to run a batch job with Slurm and wanting to use multiple compute nodes in the cluster. We have the aedt input file and are trying the following as the execution line of the job script.
ansysedt -ng -batchsolve -dis -mpi -machinelist list=$hl num=$SLURM_NTASKS ${InputFile}
When I watch the compute nodes that get assigned, I only see the first one being used. Nothing ever starts on the second compute node. The $hl list gets built to something like list=compute-4-53-ib0:48:48:98%,compute-7-19-ib0:48:48:98% I have also tried building the list to being individual 1:1 48 times for each compute node (compute-4-53-ib0:1:1:98%,compute-4-53-ib0:1:1:98%...compute-7-19-ib0:1:1:98%, ...)
Is there something else that needs to be on the command line to use both compute nodes or is there something else that needs to be done?
Jeff
-
August 8, 2023 at 3:27 pm
randyk
Ansys EmployeeHi Jeff,
Please consider creating the following script. (job.sh for this example)
dos2unix ./job.sh
chmod +x ./job.sh
sbatch ./job.sh
Modify lines 2-3, 12-13, and 39 as needed.
note1: the value of line 39 "numcores=xx" must match the allocated resource core count.job.sh
#!/bin/bash#SBATCH -N 2 # allocate 2 nodes#SBATCH -n 32 # 32 tasks total#SBATCH -J AnsysEMTest # sensible name for the job#SBATCH -p default # partition name##SBATCH --mem 0 #allocates all the memory on the node to the job##SBATCH --time 0##SBATCH --mail-user="user@company.com"##SBATCH --mail-type=ALL# Project Name and setupJobName=OptimTee.aedtAnalysisSetup=""# Project locationJobFolder=$(pwd)#### Do not modify any items below this line unless requested ####InstFolder=/opt/AnsysEM/v222/Linux64#SLURMexport ANSYSEM_GENERIC_MPI_WRAPPER=${InstFolder}/schedulers/scripts/utils/slurm_srun_wrapper.shexport ANSYSEM_COMMON_PREFIX=${InstFolder}/commonsrun_cmd="srun --overcommit --export=ALL -n 1 -N 1 --cpu-bind=none --mem-per-cpu=0 --overlap "# note: srun '--overlap' option was introduced in SLURM VERSION 20.11. If running older SLURM version, remove the '--overlap' argument.export ANSYSEM_TASKS_PER_NODE="${SLURM_TASKS_PER_NODE}"# Setup Batchoptionsecho "\$begin 'Config'" > ${JobFolder}/${JobName}.optionsecho "'Desktop/Settings/ProjectOptions/HPCLicenseType'='Pack'" >> ${JobFolder}/${JobName}.optionsecho "'HFSS/RAMLimitPercent'=90" >> ${JobFolder}/${JobName}.optionsecho "'HFSS 3D Layout Design/RAMLimitPercent'=90" >> ${JobFolder}/${JobName}.optionsecho "'HFSS/RemoteSpawnCommand'='scheduler'" >> ${JobFolder}/${JobName}.optionsecho "'HFSS 3D Layout Design/RemoteSpawnCommand'='scheduler'" >> ${JobFolder}/${JobName}.options# If multiple networks on execution host, specify network CIDR# echo "'Desktop/Settings/ProjectOptions/AnsysEMPreferredSubnetAddress'='192.168.1.0/24'" >> ${JobFolder}/${JobName}.optionsecho "\$end 'Config'" >> ${JobFolder}/${JobName}.options# Submit AEDT Job (SLURM requires 'srun' and tight integration change to the slurm_srun_wrapper.sh${srun_cmd} ${InstFolder}/ansysedt -ng -monitor -waitforlicense -useelectronicsppe=1 -distributed -machinelist numcores=32 -auto -batchoptions ${JobFolder}/${JobName}.options -batchsolve ${AnalysisSetup} ${JobFolder}/${Project} > ${JobFolder}/${JobName}.progress
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- simulation completed with execution error on server
- Maxwell, HFSS or Q3D?
- Unable to assign correctly the excitations in a coil
- How to export Ansys Maxwell simulation results for post-processing in matlab or in .csv file
- Intersect errors with model with complex structure
- Running ANSYS HFSS on the HPC (it runs on Linux only)
- Process ‘3dtds’ terminated abnormally
- Error while solving Optimetrics
- Error
- Concept of Interpolation Sweep in HFSS
-
7742
-
4502
-
2961
-
1449
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.