File tree Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Expand file tree Collapse file tree 2 files changed +56
-0
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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()'
You can’t perform that action at this time.
0 commit comments