Skip to content

Commit 9153666

Browse files
authored
Merge pull request #30 from JuliaParallel/initial
add daint/gpu/test_craype_config_no_cudaaware
2 parents b63e91f + 3ca70b4 commit 9153666

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#!/bin/bash
2+
3+
# Variable set in craype_config
4+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%[0-9]*}-gpu-nocudaaware/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 cray-hdf5-parallel
10+
module list
11+
12+
# Activate the HPC setup environment variables
13+
. $JUHPC_SETUP_INSTALLDIR/activate
14+
15+
# Call juliaup to install juliaup and latest julia on scratch
16+
juliaup
17+
18+
# Call juliaup to see its options
19+
juliaup
20+
21+
# Call julia Pkg
22+
julia -e 'using Pkg; Pkg.status()'
23+
24+
# Add CUDA.jl
25+
julia -e 'using Pkg; Pkg.add("CUDA"); using CUDA; CUDA.versioninfo()'
26+
27+
# Add MPI.jl
28+
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()'
29+
30+
# Add HDF5.jl
31+
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()'

0 commit comments

Comments
 (0)