forked from ElectronicStructureLibrary/libxc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
103 lines (94 loc) · 3.25 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# Copyright (C) 2019-2021 Xavier Andrade, Alfredo A. Correa
image: debian:stable-backports
variables:
GIT_SUBMODULE_STRATEGY: recursive
gcc:
stage: build
script:
- time apt update -qq
- time apt install --no-install-recommends -y -qq autoconf automake make gcc gfortran libtool bzip2 python3 python3-pybtex
- autoreconf -i
- mkdir build/
- cd build/
- export CC=gcc
- export CFLAGS="-O3 -pipe -Wall"
- ../configure --prefix=$HOME
- make
- make check
- make install
g++:
stage: build
script:
- time apt update -qq
- time apt install --no-install-recommends -y -qq autoconf automake make gcc g++ gfortran libtool bzip2 python3 python3-pybtex
- autoreconf -i
- mkdir build/
- cd build/
- export CFLAGS="-O3 -pipe -Wall"
- export CC=g++
- ../configure --prefix=$HOME
- make
- make check
- make install
clang++:
stage: build
script:
- time apt update -qq
- time apt install --no-install-recommends -y -qq autoconf automake make clang gfortran libtool bzip2 python3 python3-pybtex
- autoreconf -i
- mkdir build/
- cd build/
- export CFLAGS="-O3 -pipe -Wall -Wno-deprecated"
- export CC=clang++
- ../configure --prefix=$HOME
- make
- make check
- make install
nvcc_nocuda:
image: nvidia/cuda:11.2.0-devel
stage: build
artifacts:
paths:
- build/testsuite/test-suite.log
script:
- apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
- apt update -qq
- DEBIAN_FRONTEND="noninteractive" apt install --no-install-recommends -y -qq autoconf automake make gcc gfortran libtool bzip2 python3 python3-pybtex
- autoreconf -i
- mkdir build/
- cd build/
- export CC="nvcc -x cu"
- export CFLAGS="-g -O3 --std=c++03 --compiler-options -g,-Wall"
- export CCLD="nvcc"
- ../configure --prefix=$HOME
- make
- make install
#can't run since the gitlab machines don't have gpus
cuda_norun:
image: nvidia/cuda:11.2.0-devel
stage: build
script:
- apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
- apt update -qq
- DEBIAN_FRONTEND="noninteractive" apt install --no-install-recommends -y -qq autoconf automake make gcc gfortran libtool bzip2 python3 python3-pybtex
- autoreconf -i
- mkdir build/
- cd build/
- export CC="nvcc -x cu"
- export CFLAGS="-g -O3 --std=c++03 --compiler-options -g,-Wall"
- export CCLD="nvcc"
- ../configure --enable-cuda --prefix=$HOME
- make
- make install
#can't run since the gitlab machines don't have gpus
cuda_cmake_norun:
image: nvidia/cuda:11.2.0-devel
stage: build
script:
- apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub
- apt update -qq
- DEBIAN_FRONTEND="noninteractive" apt install --no-install-recommends -y -qq autoconf automake make gcc gfortran libtool bzip2 cmake python3 python3-pybtex
- mkdir build
- cd build
- cmake -DENABLE_CUDA=ON ../
- make