Skip to content

Commit 4b5fd47

Browse files
committed
add daint/gpu/test_craype_config
1 parent e731295 commit 4b5fd47

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# Variable set in craype_config
4+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%[0-9]*}-gpu/juhpc_setup
5+
6+
# Load required modules, including correct CPU and GPU target modules (NOTE: the same modules should be loaded when running julia - JUHPC can be used in a module build recipe...)
7+
module load daint-gpu
8+
module switch PrgEnv-cray PrgEnv-gnu
9+
module load cudatoolkit/11.2.0_3.39-2.1__gf93aa1c craype-accel-nvidia60 # Load latest available cudatoolkit
10+
module load cray-hdf5-parallel
11+
module list
12+
13+
# Activate the HPC setup environment variables
14+
. $JUHPC_SETUP_INSTALLDIR/activate
15+
16+
# Call juliaup to install juliaup and latest julia on scratch
17+
juliaup
18+
19+
# Call juliaup to see its options
20+
juliaup
21+
22+
# Call julia Pkg
23+
julia -e 'using Pkg; Pkg.status()'
24+
25+
# Add CUDA.jl
26+
julia -e 'using Pkg; Pkg.add("CUDA"); using CUDA; CUDA.versioninfo()'
27+
28+
# Add MPI.jl
29+
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()'
30+
31+
# Add HDF5.jl
32+
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()'

0 commit comments

Comments
 (0)