Skip to content

Commit b10e62a

Browse files
committed
update gh200 configuration
1 parent 28dccbc commit b10e62a

File tree

1 file changed

+7
-38
lines changed

1 file changed

+7
-38
lines changed

configs/cscs/alps/gh200/craype_config

Lines changed: 7 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -16,47 +16,16 @@ module list
1616

1717

1818
# Environment variables for HPC key packages that require system libraries that require system libraries (MPI.jl, CUDA.jl, HDF5.jl and ADIOS2.jl)
19-
export JUHPC_CUDA_HOME=$CUDA_HOME # Used for CUDA.jl runtime discovery (set as CUDA_HOME in the activate script).
20-
export JUHPC_CUDA_RUNTIME_VERSION=$CRAY_CUDATOOLKIT_VERSION # Used for CUDA.jl runtime version definition (set in preferences).
21-
export JUHPC_ROCM_HOME= # Used for AMDGPU.jl runtime discovery (set as ROCM_PATH in the activate script).
22-
export JUHPC_MPI_HOME= # Used for MPI.jl system binary discovery (set in preferences).
23-
export JUHPC_MPI_VENDOR="cray" # Used for MPI.jl system binary discovery (used to set preferences).
24-
export JUHPC_MPI_EXEC="srun -C gpu" # Used for MPI.jl exec command discovery (set in preferences). Arguments are space separated, e.g. "srun -C gpu".
25-
export JUHPC_HDF5_HOME=$HDF5_DIR # Used for HDF5.jl library discovery (set in preferences).
26-
export JUHPC_ADIOS2_HOME= # Used for ADIOS2.jl library discovery (set as JULIA_ADIOS2_PATH in the activate script).
19+
export JUHPC_CUDA_HOME=$CUDA_HOME
20+
export JUHPC_CUDA_RUNTIME_VERSION=$CRAY_CUDATOOLKIT_VERSION
21+
export JUHPC_MPI_VENDOR="cray"
22+
export JUHPC_MPI_EXEC="srun -C gpu"
23+
export JUHPC_HDF5_HOME=$HDF5_DIR
2724

2825

2926
# Call JUHPC
3027
git clone https://github.com/omlins/JUHPC
3128
JUHPC=./JUHPC/src/juhpc
32-
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%-*}/juhpc_setup # HPC setup installation environment variables must be expanded during installation.
33-
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%-*}/juliaup" # User environment variables SCRATCH and HOSTNAME must not be expanded HPC setup installation, but during usage. Separate installation by HOSTNAME is required, because different hosts with different architectures can share the same file system (e.g., daint and eiger on ALPS).
29+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%-*}/juhpc_setup
30+
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%-*}/juliaup"
3431
bash -l $JUHPC $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR
35-
36-
37-
# Activate the HPC setup environment variables
38-
. $JUHPC_SETUP_INSTALLDIR/activate
39-
40-
# Call juliaup to install juliaup and latest julia on scratch
41-
juliaup
42-
43-
# Call juliaup to see its options
44-
juliaup
45-
46-
# Call julia Pkg
47-
julia -e 'using Pkg; Pkg.status()'
48-
49-
# Add CUDA.jl
50-
julia -e 'using Pkg; Pkg.add("CUDA"); using CUDA; CUDA.versioninfo()'
51-
52-
# Add MPI.jl
53-
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()'
54-
55-
# Add HDF5.jl
56-
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()'
57-
58-
# Test CUDA-aware MPI
59-
cd ~/cudaaware
60-
MPICH_GPU_SUPPORT_ENABLED=1 srun -Acsstaff -C'gpu' -N2 -n2 julia cudaaware.jl
61-
62-
# julia -e 'import Pkg; Pkg.test("MPI"; test_args=["--backend=CUDA"])'

0 commit comments

Comments
 (0)