Skip to content

Commit 792662f

Browse files
authored
Merge pull request #10 from JuliaParallel/initial
add LUMI configuration
2 parents 8936fc4 + 5d19b1b commit 792662f

File tree

7 files changed

+73
-6
lines changed

7 files changed

+73
-6
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export JUHPC_HDF5_HOME=$HDF5_DIR
9797
# Call JUHPC
9898
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%-*}/juhpc_setup
9999
JULIAUP_INSTALLDIR="\$SCRATCH/../julia/\$USER/\${HOSTNAME%%-*}/juliaup"
100-
VERSION="v0.1.0"
100+
VERSION="v0.1.1"
101101
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
102102
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR
103103
```
@@ -124,7 +124,7 @@ export JUHPC_ADIOS2_HOME=$(spack -C $ENV_MOUNT/config location -i adios2)
124124
JUHPC_SETUP_INSTALLDIR=$ENV_MOUNT/juhpc_setup
125125
JULIAUP_INSTALLDIR="\$SCRATCH/../julia/\$USER/\${HOSTNAME%%-*}/juliaup"
126126
JUHPC_POST_INSTALL_JL=$ENV_EXTRA/uenv_view.jl
127-
VERSION="v0.1.0"
127+
VERSION="v0.1.1"
128128
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
129129
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR $JUHPC_POST_INSTALL_JL
130130
```

configs/cscs/alps/gh200/craype_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export JUHPC_HDF5_HOME=$HDF5_DIR
2626
# Call JUHPC
2727
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%-*}/juhpc_setup
2828
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%-*}/juliaup"
29-
VERSION="v0.1.0"
29+
VERSION="v0.1.1"
3030
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
3131
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR

configs/cscs/alps/mc/craype_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export JUHPC_HDF5_HOME=$HDF5_DIR
2323
# Call JUHPC
2424
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%-*}/juhpc_setup
2525
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%-*}/juliaup"
26-
VERSION="v0.1.0"
26+
VERSION="v0.1.1"
2727
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
2828
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR

configs/cscs/daint/gpu/craype_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ echo 'using Preferences
3636
# Call JUHPC
3737
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%[0-9]*}-gpu/juhpc_setup
3838
JULIAUP_INSTALLDIR="\$SCRATCH/../julia/\$USER/\${HOSTNAME%%[0-9]*}-gpu/juliaup"
39-
VERSION="v0.1.0"
39+
VERSION="v0.1.1"
4040
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
4141
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR $JUHPC_POST_INSTALL_JL

configs/cscs/daint/mc/craype_config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export JUHPC_HDF5_HOME=$HDF5_DIR
2323
# Call JUHPC
2424
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%[0-9]*}-mc/juhpc_setup
2525
JULIAUP_INSTALLDIR="\$SCRATCH/../julia/\$USER/\${HOSTNAME%%[0-9]*}-mc/juliaup"
26-
VERSION="v0.1.0"
26+
VERSION="v0.1.1"
2727
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
2828
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/bin/bash
2+
3+
# Author: Samuel Omlin, CSCS (omlins)
4+
#
5+
# Description: Definition of site specific variables and call of JUHPC.
6+
# Site: LUMI, EuroHPC JU
7+
# Base: craype (LUMI-flavored)
8+
9+
# Load required modules (including correct CPU and GPU target modules)
10+
module load LUMI
11+
module load partition/G # loads CPU and GPU target modules (craype-x86-trento, craype-accel-amd-gfx90a)
12+
module load cpeGNU # LUMI-wrapper for PrgEnv-gnu
13+
module load rocm
14+
module load cray-hdf5-parallel
15+
module list
16+
17+
# Environment variables for HPC key packages that require system libraries that require system libraries (MPI.jl, CUDA.jl, HDF5.jl and ADIOS2.jl)
18+
export JUHPC_ROCM_HOME=$ROCM_PATH
19+
export JUHPC_MPI_VENDOR="cray"
20+
export JUHPC_MPI_EXEC="srun"
21+
export JUHPC_HDF5_HOME=$HDF5_DIR
22+
23+
24+
# Call JUHPC
25+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%[0-9]*}/juhpc_setup #SCRATCH is assumed to be defined in ~/.bashrc, e.g., SCRATCH=/scratch/project_465000105/$USER
26+
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%[0-9]*}/juliaup"
27+
VERSION="v0.1.1"
28+
wget https://raw.githubusercontent.com/JuliaParallel/JUHPC/$VERSION/juhpc -O /tmp/juhpc
29+
bash -l /tmp/juhpc $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
#!/bin/bash
2+
3+
# Variable set in craype_config
4+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%[0-9]*}/juhpc_setup
5+
6+
# Load required modules (including correct CPU and GPU target modules)
7+
module load LUMI
8+
module load partition/G # loads CPU and GPU target modules (craype-x86-trento, craype-accel-amd-gfx90a)
9+
module load cpeGNU # LUMI-wrapper for PrgEnv-gnu
10+
module load rocm
11+
module load cray-hdf5-parallel
12+
module list
13+
14+
# Activate the HPC setup environment variables
15+
. $JUHPC_SETUP_INSTALLDIR/activate
16+
17+
# Call juliaup to install juliaup and latest julia on scratch
18+
juliaup
19+
20+
# Call juliaup to see its options
21+
juliaup
22+
23+
# Call julia Pkg
24+
julia -e 'using Pkg; Pkg.status()'
25+
26+
# Add AMDGPU.jl
27+
julia -e 'using Pkg; Pkg.add("AMDGPU"); using AMDGPU; AMDGPU.versioninfo()'
28+
29+
# Add MPI.jl
30+
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()'
31+
32+
# Add HDF5.jl
33+
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()'
34+
35+
# Test AMDGPU-aware MPI
36+
julia -e 'using Pkg; Pkg.add(["ImplicitGlobalGrid", "ParallelStencil"]);'
37+
cd ~/rocmaware
38+
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

0 commit comments

Comments
 (0)