-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export JuliaDevice="GPU" | ||
export JuliaGPU="CUDA" | ||
export UCX_ERROR_SIGNALS="" | ||
srun -n 1 gpu_wrapper.sh -n 1 -e "./Jobs/NHSphere/BaroWaveDrySphere" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#SBATCH --account=project_465000863 | ||
#SBATCH --time=00:20:00 | ||
#SBATCH --nodes=1 | ||
#SBATCH --ntasks=1 | ||
#SBATCH --cpus-per-task=1 | ||
#SBATCH --gpus-per-node=1 | ||
#SBATCH --mem=0 | ||
#SBATCH --partition=dev-g | ||
# dev-g max 56 cpus per task | ||
|
||
#module load CrayEnv rocm | ||
|
||
cat << EOF > select_gpu | ||
#!/bin/bash | ||
export JuliaDevice="GPU" | ||
export JuliaGPU="AMD" | ||
export MPICH_GPU_SUPPORT_ENABLED=1 | ||
export ROCR_VISIBLE_DEVICES=\$SLURM_LOCALID | ||
exec \$* | ||
EOF | ||
|
||
chmod +x ./select_gpu | ||
|
||
echo '####' | ||
|
||
#CPU_BIND="map_cpu:49,57" | ||
srun --cpu-bind=cores --unbuffered ./select_gpu ./Jobs/NHSphere/BaroWaveDrySphere |