Skip to content

Commit 7871d34

Browse files
committed
add mc configuration
1 parent 53d1e1a commit 7871d34

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

configs/cscs/alps/mc/craype_config

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# Author: Samuel Omlin, CSCS (omlins)
4+
#
5+
# Description: Definition of site specific variables and call of JUHPC.
6+
# Site: ALPS:eiger, Swiss National Supercomputing Centre (CSCS)
7+
# Base: craype
8+
9+
10+
# Load required modules (including correct CPU and GPU target modules)
11+
module load cray
12+
module switch PrgEnv-cray PrgEnv-gnu
13+
module load cray-hdf5-parallel
14+
module list
15+
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_MPI_VENDOR="cray"
19+
export JUHPC_MPI_EXEC="srun -C mc"
20+
export JUHPC_HDF5_HOME=$HDF5_DIR
21+
22+
23+
# Call JUHPC
24+
git clone https://github.com/omlins/JUHPC
25+
JUHPC=./JUHPC/src/juhpc
26+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%-*}/juhpc_setup
27+
JULIAUP_INSTALLDIR="\$SCRATCH/\${HOSTNAME%%-*}/juliaup"
28+
bash -l $JUHPC $JUHPC_SETUP_INSTALLDIR $JULIAUP_INSTALLDIR
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# Variable set in craype_config
4+
JUHPC_SETUP_INSTALLDIR=$SCRATCH/${HOSTNAME%%-*}/juhpc_setup # HPC setup installation environment variables must be expanded during installation.
5+
6+
# Load required modules (including correct CPU and GPU target modules)
7+
module load cray
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 MPI.jl
25+
julia -e 'using Pkg; Pkg.add("MPI"); using MPI; MPI.versioninfo()'
26+
27+
# Add HDF5.jl
28+
julia -e 'using Pkg; Pkg.add("HDF5"); using HDF5; @show HDF5.has_parallel()'

0 commit comments

Comments
 (0)