Add matrix.static to Ubuntu builds

This commit is contained in:
Roman Grundkiewicz 2020-09-11 13:31:02 +01:00
parent 976f892917
commit f9a069c0eb

View File

@ -163,6 +163,7 @@ stages:
gcc: 7
unit_tests: true
examples: false
static: true
# Ubuntu GPU-only build
"GPU-only":
image: ubuntu-latest
@ -173,6 +174,7 @@ stages:
gcc: 7
unit_tests: false
examples: false
static: false
################################################################
# Ubuntu 20.04 supports CUDA 11+
#
@ -182,10 +184,13 @@ stages:
#"20.04 CUDA 11.0 gcc-9":
#image: ubuntu-20.04
#boost: false # ubuntu-20.04 does not have Boost pre-installed yet
#cpu: true
#gpu: true
#cuda: 11.0
#gcc: 9
#unit_tests: false # disable unit tests to minimize compilation time
#examples: false # disable examples to minimize compilation time
#static: false
################################################################
# Ubuntu 18.04 supports CUDA 10.1+
"18.04 CUDA 10.2 gcc-8":
@ -197,6 +202,7 @@ stages:
gcc: 8
unit_tests: true
examples: true
static: true
################################################################
# Ubuntu 16.04 supports CUDA 8+
"16.04 CUDA 10.2 gcc-7":
@ -208,6 +214,7 @@ stages:
gcc: 7
unit_tests: true
examples: true
static: false
"16.04 CUDA 9.2 gcc-7":
image: ubuntu-16.04
boost: true
@ -217,6 +224,7 @@ stages:
gcc: 7
unit_tests: false
examples: false
static: false
pool:
vmImage: $(image)
@ -254,6 +262,7 @@ stages:
-DCOMPILE_CPU=$(cpu) -DCOMPILE_CUDA=$(gpu) \
-DCOMPILE_EXAMPLES=$(examples) -DCOMPILE_SERVER=$(boost) -DCOMPILE_TESTS=$(unit_tests) \
-DUSE_FBGEMM=on -DUSE_SENTENCEPIECE=on \
-DUSE_STATIC_LIBS=$(static) \
-DBOOST_ROOT=$BOOST_ROOT_1_69_0 -DBOOST_INCLUDEDIR=$BOOST_ROOT_1_69_0/include -DBOOST_LIBRARYDIR=$BOOST_ROOT_1_69_0/lib \
-DBoost_ARCHITECTURE=-x64 \
-DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda-$(cuda)