When submitting to SLURM, below is an example - 'srun' should wrap the 'ansysedt' call.
InstFolder=/opt/AnsysEM/v241/Linux64
# SLURM envs
export ANSYSEM_GENERIC_MPI_WRAPPER=${InstFolder}/schedulers/scripts/utils/slurm_srun_wrapper.sh
export ANSYSEM_COMMON_PREFIX=${InstFolder}/common
srun_cmd="srun --overcommit --export=ALL Â -n 1 -N 1 --cpu-bind=none --mem-per-cpu=0 --overlap "
# Autocompute total cores from node allocation
export ANSYSEM_TASKS_PER_NODE="${SLURM_TASKS_PER_NODE}"
# 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=24 -auto -batchoptions optionsfilename -batchsolve ${AnalysisSetup} ${JobFolder}/${Project} > ${JobFolder}/${JobName}.progress