forked from hpc-io/h5bench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
48 lines (45 loc) · 1.48 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
variables:
HDF5_DIR: "/global/cfs/cdirs/m2621/h5bench/hdf5/install"
HDF5_HOME: "/global/cfs/cdirs/m2621/h5bench/hdf5/install"
H5BENCH_BUILD_PATH: "${CI_PROJECT_DIR}/build"
H5BENCH_INSTALL_PATH: "${CI_PROJECT_DIR}/install"
stages:
- build
- test
build:
stage: build
tags:
- cori
variables:
GIT_SUBMODULE_STRATEGY: recursive
SCHEDULER_PARAMETERS: "-C haswell --qos=debug -N 1 -t 00:30:00 --gres=craynetwork:3"
script:
- echo "Build h5bench"
- module swap PrgEnv-intel PrgEnv-gnu
- module list
- module load cmake
- mkdir ${H5BENCH_BUILD_PATH}
- cd ${H5BENCH_BUILD_PATH}
- cmake .. -DCMAKE_INSTALL_PREFIX=${H5BENCH_INSTALL_PATH}
- make
- make install
artifacts:
paths:
- ${H5BENCH_BUILD_PATH}
- ${H5BENCH_INSTALL_PATH}
test:
stage: test
tags:
- cori
variables:
SCHEDULER_PARAMETERS: "-C haswell --qos=debug -N 1 -t 00:30:00 --gres=craynetwork:3"
script:
- echo "Test h5bench SYNC"
- cd ${H5BENCH_BUILD_PATH}
- export LD_LIBRARY_PATH=$HDF5_DIR/lib:$LD_LIBRARY_PATH
- export MPICH_MAX_THREAD_SAFETY=multiple
- echo "Test h5bench SYNC write"
- srun -n 2 ./h5bench_write ../h5bench_patterns/sample_config/sample_cc1d_small.cfg file.h5
- echo "Test h5bench SYNC read"
- srun -n 2 ./h5bench_read ../h5bench_patterns/sample_config/sample_cc1d_small.cfg file.h5
- ls -larth file.h5