Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

Codeblock
languagebash
titleJob for 1 node running with 4 GPUs and 4 host tasks
#!/bin/bash
#SBATCH -t 00:10:00
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=4
#SBATCH --gpus-per-node=4
#SBATCH -L ansys
#SBATCH -p gpu
#SBATCH --output="slurm.log.%j"
echo "Running on nodes: ${SLURM_JOB_NODELIST}"

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} -mpi=intel -i fluent.jou  >/dev/null 2>&1
echo '#################### Fluent finished ############'

Your job can be /was offloaded successfully if parallel/gpgpu/show prints denotes the selected devices with a "(*)" and the solver call displays .
Your job was offloaded successfully if the actual call of you solver prints "AMG on GPGPU".
In this case, your .trn output file contains devices_list.trn and amgx_and_runtime.trn, respectively.

...