This repository has been archived by the owner on Nov 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
/
.jenkins
57 lines (56 loc) · 1.87 KB
/
.jenkins
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
49
50
51
52
53
54
55
56
57
pipeline {
agent none
environment {
// Get rid of Read -1, expected <someNumber>, errno =1 error
// See https://github.com/open-mpi/ompi/issues/4948
OMPI_MCA_btl_vader_single_copy_mechanism = 'none'
// Remove warning: "A high-performance Open MPI point-to-point
// messaging module was unable to find any relevant network
// interfaces."
OMPI_MCA_btl_base_warn_component_unused = '0'
// Run MPI as root
OMPI_ALLOW_RUN_AS_ROOT = '1'
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM = '1'
OMPI_CXX = '/opt/trilinos/bin/nvcc_wrapper'
}
stages {
stage('Test') {
parallel {
stage('CUDA-11.0') {
agent {
dockerfile {
filename "Dockerfile"
dir "docker"
label 'nvidia-docker && volta'
}
}
steps {
sh 'rm -rf build && mkdir -p build'
dir('build') {
sh '''
cmake \
-D BUILD_SHARED_LIBS=ON \
-D CMAKE_BUILD_TYPE=Debug \
-D DataTransferKit_ENABLE_DataTransferKit=ON \
-D DataTransferKit_ENABLE_TESTS=ON \
-D TPL_Trilinos_DIR=${TRILINOS_DIR} \
-D TPL_BoostOrg_INCLUDE_DIRS=${BOOST_DIR}/include \
-D CMAKE_CXX_EXTENSIONS=OFF \
-D CMAKE_CXX_FLAGS="--expt-extended-lambda" \
-D DataTransferKit_ENABLE_OpenMP=ON \
..
'''
sh 'make VERBOSE=1 -j8'
sh 'ctest --no-compress-output -T Test'
}
}
post {
always {
xunit([CTest(deleteOutputFiles: true, failIfNotNew: true, pattern: 'build/Testing/**/Test.xml', skipNoTestFiles: false, stopProcessingIfError: true)])
}
}
}
}
}
}
}