-
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.
Merge pull request #10 from JuliaParallel/initial
add LUMI configuration
- Loading branch information
Showing
7 changed files
with
73 additions
and
6 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
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
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
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
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
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,29 @@ | ||
#!/bin/bash | ||
|
||
# Author: Samuel Omlin, CSCS (omlins) | ||
# | ||
# Description: Definition of site specific variables and call of JUHPC. | ||
# Site: LUMI, EuroHPC JU | ||
# Base: craype (LUMI-flavored) | ||
|
||
# Load required modules (including correct CPU and GPU target modules) | ||
module load LUMI | ||
module load partition/G # loads CPU and GPU target modules (craype-x86-trento, craype-accel-amd-gfx90a) | ||
module load cpeGNU # LUMI-wrapper for PrgEnv-gnu | ||
module load rocm | ||
module load cray-hdf5-parallel | ||
module list | ||
|
||
# Environment variables for HPC key packages that require system libraries that require system libraries (MPI.jl, CUDA.jl, HDF5.jl and ADIOS2.jl) | ||
export JUHPC_ROCM_HOME=$ROCM_PATH | ||
export JUHPC_MPI_VENDOR="cray" | ||
export JUHPC_MPI_EXEC="srun" | ||
export JUHPC_HDF5_HOME=$HDF5_DIR | ||
|
||
|
||
# Call JUHPC | ||
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%[0-9]*}/juhpc_setup #SCRATCH is assumed to be defined in ~/.bashrc, e.g., SCRATCH=/scratch/project_465000105/$USER | ||
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%[0-9]*}/juliaup" | ||
VERSION="v0.1.1" | ||
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc | ||
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR |
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,38 @@ | ||
#!/bin/bash | ||
|
||
# Variable set in craype_config | ||
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%[0-9]*}/juhpc_setup | ||
|
||
# Load required modules (including correct CPU and GPU target modules) | ||
module load LUMI | ||
module load partition/G # loads CPU and GPU target modules (craype-x86-trento, craype-accel-amd-gfx90a) | ||
module load cpeGNU # LUMI-wrapper for PrgEnv-gnu | ||
module load rocm | ||
module load cray-hdf5-parallel | ||
module list | ||
|
||
# Activate the HPC setup environment variables | ||
. $JUHPC_SETUP_INSTALLDIR/activate | ||
|
||
# Call juliaup to install juliaup and latest julia on scratch | ||
juliaup | ||
|
||
# Call juliaup to see its options | ||
juliaup | ||
|
||
# Call julia Pkg | ||
julia -e 'using Pkg; Pkg.status()' | ||
|
||
# Add AMDGPU.jl | ||
julia -e 'using Pkg; Pkg.add("AMDGPU"); using AMDGPU; AMDGPU.versioninfo()' | ||
|
||
# Add MPI.jl | ||
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()' | ||
|
||
# Add HDF5.jl | ||
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()' | ||
|
||
# Test AMDGPU-aware MPI | ||
julia -e 'using Pkg; Pkg.add(["ImplicitGlobalGrid", "ParallelStencil"]);' | ||
cd ~/rocmaware | ||
MPICH_GPU_SUPPORT_ENABLED=1 IGG_ROCMAWARE_MPI=1 srun --time=00:09:00 -pdev-g -Aproject_465000557 -N2 -n2 --gpus-per-node=8 julia -O3 --check-bounds=no diffusion3D.jl |