1 # Mix-in job definitions.
3 # Centralized definitions of common job parameter values.
7 KUBERNETES_CPU_LIMIT: 8
8 KUBERNETES_CPU_REQUEST: 4
9 KUBERNETES_MEMORY_LIMIT: 8Gi
10 KUBERNETES_EXTENDED_RESOURCE_NAME: ""
11 KUBERNETES_EXTENDED_RESOURCE_LIMIT: 0
12 CACHE_FALLBACK_KEY: "$CI_JOB_NAME-$CI_JOB_STAGE-master"
15 CMAKE_GMXAPI_OPTIONS: "-DGMX_PYTHON_PACKAGE=ON"
16 EXTRA_INSTALLS: "python3-dev python3-setuptools python3-pip python3-pytest"
17 # TODO: Get these from updated Docker images.
19 # Behavioral templates
21 # Use a persistent compiler cache to speed up rebuilds for a single job.
24 key: "$CI_JOB_NAME-$CI_JOB_STAGE-$CI_COMMIT_REF_SLUG"
32 CMAKE_PRECISION_OPTIONS: "-DGMX_DOUBLE=OFF"
35 CMAKE_EXTRA_OPTIONS: -DCUDA_TOOLKIT_ROOT_DIR=/usr/local/cuda/
36 CMAKE_GPU_OPTIONS: -DGMX_GPU=ON
38 # Base definition, not to be used directly.
39 # Use version-specific `.use-gccX` definitions when defining jobs.
43 CMAKE_COMPILER_SCRIPT: -DCMAKE_C_COMPILER=gcc-$COMPILER_MAJOR_VERSION -DCMAKE_CXX_COMPILER=g++-$COMPILER_MAJOR_VERSION
45 - echo $EXTRA_INSTALLS
46 - time apt-get -qq update
47 - time apt-get -qqy --no-install-suggests --no-install-recommends install
50 - export CCACHE_BASEDIR=${PWD}
51 - export CCACHE_DIR=${PWD}/ccache
54 image: gromacs/ci-gcc-7:master
56 COMPILER_MAJOR_VERSION: 7
61 image: gromacs/ci-gcc-8:master
63 COMPILER_MAJOR_VERSION: 8
68 image: gromacs/ci-gcc-8-cuda-10.2:master
70 CUDA_BASE_VERSION: "10.2"
71 COMPILER_MAJOR_VERSION: 8
73 # Base definition, not to be used directly.
74 # Use version-specific `.use-clangX` definitions when defining jobs.
77 DEBIAN_FRONTEND: noninteractive
78 BUILD_DIR: build-clang
79 CMAKE_COMPILER_SCRIPT: -DCMAKE_C_COMPILER=clang-$COMPILER_MAJOR_VERSION -DCMAKE_CXX_COMPILER=clang++-$COMPILER_MAJOR_VERSION
81 - echo $EXTRA_INSTALLS
82 - time apt-get -qq update
83 - time apt-get -qqy --no-install-suggests --no-install-recommends install
86 - export CCACHE_BASEDIR=${PWD}
87 - export CCACHE_DIR=${PWD}/ccache
90 image: gromacs/ci-clang-6:master
92 COMPILER_MAJOR_VERSION: 6
97 image: gromacs/ci-clang-7:master
99 COMPILER_MAJOR_VERSION: 7
104 image: gromacs/ci-clang-8:master
106 COMPILER_MAJOR_VERSION: 8