Skip to main content
Asked a question 7 years ago

How do I run interactive Ansys Fluent using Slurm?

Where am I?

In Bright Computing, Inc. you can ask and answer questions and share your experience with others!

How do I run interactive Ansys Fluent using Slurm?

You can use the following script:

[cmsupport@bright60 ~] cat ./fluent-srun.sh3
#!/usr/bin/env bash
HOSTSFILE=.hostlist-job$SLURM_JOB_ID
if [ "$SLURM_PROCID" == "0" ]; then
   srun hostname -f > $HOSTSFILE
   fluent -t $SLURM_NTASKS -cnf=$HOSTSFILE -ssh 3d
   rm -f $HOSTSFILE
fi
exit 0

Example: to run an interactive session, use srun like this: 

[cmsupport@bright60 ~] srun -n <tasks> ./fluent-srun.sh3