Skip to content

Commit

Permalink
update setonix configuration (#362)
Browse files Browse the repository at this point in the history
* update setonix configuration

* update config

* use un-hidden cmake

* Update setonix.cmake

---------

Co-authored-by: Piyush Sharda <[email protected]>
  • Loading branch information
BenWibking and psharda authored Sep 9, 2023
1 parent 7ffd65f commit d17b5e4
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 67 deletions.
5 changes: 3 additions & 2 deletions cmake/setonix.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@

set(AMReX_GPU_BACKEND HIP CACHE STRING "")
set(AMReX_AMD_ARCH gfx90a CACHE STRING "") # MI250X
set(AMReX_ASCENT OFF BOOL STRING "")
#set(AMReX_ASCENT ON CACHE BOOL "")
#set(AMReX_CONDUIT ON CACHE BOOL "")

option(QUOKKA_PYTHON ON)
set(AMReX_SPACEDIM 3 CACHE STRING "")
set(AMReX_SPACEDIM 3 CACHE STRING "")
3 changes: 1 addition & 2 deletions scripts/setonix-1node.submit
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
#SBATCH --exclusive
#SBATCH --ntasks-per-node=8
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=8
##SBATCH --core-spec=8
#SBATCH -N 1

# load modules
module load craype-accel-amd-gfx90a
module load rocm/5.4.3
module load rocm/5.2.3

# workaround no longer needed for AMReX 23.07+
#export FI_MR_CACHE_MAX_COUNT=0 # libfabric disable caching
Expand Down
3 changes: 1 addition & 2 deletions scripts/setonix-64nodes.submit
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
#SBATCH --exclusive
#SBATCH --ntasks-per-node=8
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=8
##SBATCH --core-spec=8
#SBATCH -N 64

# load modules
module load craype-accel-amd-gfx90a
module load rocm/5.4.3
module load rocm/5.2.3

# workaround no longer needed for AMReX 23.07+
#export FI_MR_CACHE_MAX_COUNT=0 # libfabric disable caching
Expand Down
3 changes: 1 addition & 2 deletions scripts/setonix-8nodes.submit
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
#SBATCH --exclusive
#SBATCH --ntasks-per-node=8
#SBATCH --gpus-per-node=8
#SBATCH --cpus-per-task=8
##SBATCH --core-spec=8
#SBATCH -N 8

# load modules
module load craype-accel-amd-gfx90a
module load rocm/5.4.3
module load rocm/5.2.3

# workaround no longer needed for AMReX 23.07+
#export FI_MR_CACHE_MAX_COUNT=0 # libfabric disable caching
Expand Down
30 changes: 0 additions & 30 deletions scripts/setonix-rocm5.3.0.profile

This file was deleted.

25 changes: 0 additions & 25 deletions scripts/setonix-rocm5.4.3.profile

This file was deleted.

11 changes: 7 additions & 4 deletions scripts/setonix.profile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/bin/bash

source /opt/cray/pe/cpe/22.09/restore_lmod_system_defaults.sh
source /opt/cray/pe/cpe/23.03/restore_lmod_system_defaults.sh

module load cmake/3.21.4
module load cmake/3.24.3
module load craype-accel-amd-gfx90a
module load rocm/5.0.2
module load rocm/5.2.3
module load cray-mpich
module load cce/14.0.3
module load cce/15.0.1
module load cray-hdf5
module load cray-python/3.9.13.1

Expand All @@ -16,6 +16,9 @@ export MPICH_GPU_SUPPORT_ENABLED=1
# optimize ROCm/HIP compilation for MI250X
export AMREX_AMD_ARCH=gfx90a

# allow CMake to find Ascent
export Ascent_DIR=/software/projects/pawsey0807/bwibking/ascent_06082023/install/ascent-develop/lib/cmake/ascent/

# compiler environment hints
export CC=$(which cc)
export CXX=$(which CC)
Expand Down

0 comments on commit d17b5e4

Please sign in to comment.