Skip to content

Commit 05452ab

Browse files
committed
update daint-mc configuration
1 parent 0651f30 commit 05452ab

File tree

1 file changed

+5
-29
lines changed

1 file changed

+5
-29
lines changed

configs/cscs/daint/mc/craype_config

Lines changed: 5 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,14 @@ module list
1515

1616

1717
# 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_CUDA_HOME= # Used for CUDA.jl runtime discovery (set as CUDA_HOME in the activate script).
19-
export JUHPC_CUDA_RUNTIME_VERSION=$CRAY_CUDATOOLKIT_VERSION # Used for CUDA.jl runtime version definition (set in preferences).
20-
export JUHPC_ROCM_HOME= # Used for AMDGPU.jl runtime discovery (set as ROCM_PATH in the activate script).
21-
export JUHPC_MPI_HOME=$MPICH_DIR # Used for MPI.jl system binary discovery (set in preferences).
22-
export JUHPC_MPI_VENDOR= # Used for MPI.jl system binary discovery (used to set preferences).
23-
export JUHPC_MPI_EXEC="srun -C mc" # Used for MPI.jl exec command discovery (set in preferences). Arguments are space separated, e.g. "srun -C mc".
24-
export JUHPC_HDF5_HOME=$HDF5_DIR # Used for HDF5.jl library discovery (set in preferences).
25-
export JUHPC_ADIOS2_HOME= # Used for ADIOS2.jl library discovery (set as JULIA_ADIOS2_PATH in the activate script).
18+
export JUHPC_MPI_HOME=$MPICH_DIR
19+
export JUHPC_MPI_EXEC="srun -C mc"
20+
export JUHPC_HDF5_HOME=$HDF5_DIR
2621

2722

2823
# Call JUHPC
2924
git clone https://github.com/omlins/JUHPC
3025
JUHPC=./JUHPC/src/juhpc
31-
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%[0-9]*}-mc/juhpc_setup # HPC setup installation environment variables must be expanded during installation.
32-
JULIAUP_INSTALLDIR="\$SCRATCH/../julia/\$USER/\${HOSTNAME%%[0-9]*}-mc/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).
26+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/../julia/${HOSTNAME%%[0-9]*}-mc/juhpc_setup
27+
JULIAUP_INSTALLDIR="\$SCRATCH/../julia/\$USER/\${HOSTNAME%%[0-9]*}-mc/juliaup"
3328
bash -l $JUHPC $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR
34-
35-
36-
# Activate the HPC setup environment variables
37-
. $JUHPC_SETUP_INSTALLDIR/activate
38-
39-
# Call juliaup to install juliaup and latest julia on scratch
40-
juliaup
41-
42-
# Call juliaup to see its options
43-
juliaup
44-
45-
# Call julia Pkg
46-
julia -e 'using Pkg; Pkg.status()'
47-
48-
# Add MPI.jl
49-
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()'
50-
51-
# Add HDF5.jl
52-
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()'

0 commit comments

Comments
 (0)