...
Codeblock | ||||
---|---|---|---|---|
| ||||
#!/bin/bash #SBATCH -t 00:10:00 #SBATCH --nodes=2 #SBATCH --ntasks-per-node=4 #SBATCH --gpus-per-node=4L ansys #SBATCH -p gpu-La100 ### ansyson #SBATCHemmy -p is simply called gpu #SBATCH --output="slurm.log.%j" echo "Running on nodes: ${SLURM_JOB_NODELIST}" srun hostname -s > hostfile module load ansys/2020r2 cat <<EOF > fluent.jou ; this is a Ansys journal file aka text user interface (TUI) file parallel/gpgpu/show file/read-cas initial_run.cas.h5 solve/iterate 10 file/write-case-data outputfile ok exit EOF fluent 2d -g -t${SLURM_NTASKS} -gpgpu=${SLURM_GPUS_PER_NODE}4 -mpi=intel -cnf=hostfile -i fluent.jou >/dev/null 2>&1 echo '#################### Fluent finished ############' |
...