forked from hpc-io/pdc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
30 lines (27 loc) · 1.11 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
# This is a global variable
variables:
LIBFABRIC_DIR: "/global/cfs/cdirs/m1248/pdc/libfabric-1.12.1/install"
MERCURY_DIR: "/global/cfs/cdirs/m1248/pdc/mercury-2.0.0/install"
stages:
- build
# This stage uses the global SCHEDULER_PARAMETERS variable
build:
stage: build
tags:
- cori
variables:
SCHEDULER_PARAMETERS: "-C haswell --qos=debug -N 1 -t 00:30:00 --gres=craynetwork:3"
# SCHEDULER_PARAMETERS: "--clusters=escori -N 1 --qos=compile -t 00:30:00"
script:
- echo "Build PDC"
# - pwd
- module list
- cd src && mkdir build && cd build
- cmake ../ -DBUILD_MPI_TESTING=ON -DBUILD_SHARED_LIBS=ON -DBUILD_TESTING=ON -DPDC_ENABLE_MPI=ON -DPDC_ENABLE_TIMING=ON -DMERCURY_DIR=$MERCURY_DIR -DCMAKE_C_COMPILER=cc -DCMAKE_C_FLAGS=-dynamic -DMPI_RUN_CMD=srun -DPDC_ENABLE_LUSTRE=ON -DPDC_DISABLE_CHECKPOINT=ON
- make -j
- export LD_LIBRARY_PATH="$LIBFABRIC_DIR/lib:$MERCURY_DIR/lib:$LD_LIBRARY_PATH"
- echo $LD_LIBRARY_PATH
# - echo "Run Serial Tests"
# - ctest -L serial
- echo "Run Parallel Tests"
- ctest -L parallel