-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
138 lines (121 loc) · 4.42 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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
build:pw:
tags: [docker]
image: ubuntu:18.04
script:
- apt-get -qq update
- apt-get -qq install m4 make wget curl git gfortran gcc libopenblas-dev libfftw3-dev libopenmpi-dev
- ./configure
- make pw
# - export OMP_NUM_THREADS=1
# - cd test-suite
# - mkdir /tmp/save
# - make run-tests-pw-serial
# - rm -r /tmp/save
build:cp:
tags: [docker]
image: ubuntu:18.04
script:
- apt-get -qq update
- apt-get -qq install m4 make wget curl git gfortran gcc libopenblas-dev libfftw3-dev libopenmpi-dev
- ./configure
- make cp
# - export OMP_NUM_THREADS=1
# - cd test-suite
# - mkdir /tmp/save
# - make run-tests-cp-serial
# - rm -r /tmp/save
#build:ph:
# tags: [docker]
# image: espressofoundation/ubuntu:latest
# script:
# - ./configure
# - make ph
# - export OMP_NUM_THREADS=1
# - cd test-suite
# - mkdir /tmp/save
# - make run-tests-ph-serial
# - rm -r /tmp/save
build:cmake-gnu:
tags: [docker]
image: ubuntu:20.04
variables:
DEBIAN_FRONTEND: "noninteractive"
script:
- apt-get -qq update
- apt-get -qq install apt-transport-https ca-certificates gnupg software-properties-common wget
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
- apt-get install -qq build-essential git cmake libopenblas-dev libfftw3-dev libopenmpi-dev
- cmake --version
- mkdir build
- cd build
- cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_Fortran_COMPILER=mpif90 -DCMAKE_C_COMPILER=mpicc
-DMPIEXEC_PREFLAGS="--allow-run-as-root;--oversubscribe" .. && make
&& make pw ph hp pwcond neb pp pwall cp tddfpt gwl ld1 upf xspectra couple epw all_currents
&& ctest -L unit --output-on-failure
- make install DESTDIR=`pwd`/install_root
build:pgi:
tags: [docker]
image: nvcr.io/nvidia/nvhpc:20.9-devel-ubuntu20.04
script:
- apt-get -qq update
- apt-get -qq install ca-certificates git m4
- ./configure FC=pgf90 F90=pgf90 F77=pgfortran MPIF90=mpif90 --enable-openmp --with-cuda=yes --enable-cuda-env-check=no
- make pw cp ph
build:cmake-nvhpc:
tags: [docker]
image: nvcr.io/nvidia/nvhpc:21.2-devel-cuda11.2-ubuntu20.04
variables:
DEBIAN_FRONTEND: "noninteractive"
script:
- apt-get -qq update
- apt-get -qq install apt-transport-https ca-certificates gnupg software-properties-common wget
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
- apt-get install -qq git cmake libfftw3-dev
- cmake --version
- mkdir build
- cd build
- cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_Fortran_COMPILER=mpif90 -DCMAKE_C_COMPILER=mpicc
-DQE_ENABLE_CUDA=ON -DQE_ENABLE_OPENACC=ON -DNVFORTRAN_CUDA_CC=70 .. && make
build:cmake-nvhpc-nocuda:
tags: [docker]
image: nvcr.io/nvidia/nvhpc:21.2-devel-cuda11.2-ubuntu20.04
variables:
DEBIAN_FRONTEND: "noninteractive"
script:
- apt-get -qq update
- apt-get -qq install apt-transport-https ca-certificates gnupg software-properties-common wget
- wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /etc/apt/trusted.gpg.d/kitware.gpg >/dev/null
- apt-add-repository 'deb https://apt.kitware.com/ubuntu/ focal main'
- apt-get install -qq git cmake libfftw3-dev
- cmake --version
- mkdir build
- cd build
- cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_Fortran_COMPILER=mpif90 -DCMAKE_C_COMPILER=mpicc
-DQE_ENABLE_CUDA=OFF -DQE_ENABLE_OPENACC=OFF .. && make
#build:centos:
# image: centos:latest
# script:
# - yum -y groupinstall "Development Tools"
# - yum -y install wget which python27
# - ./configure
# - make all
# - export OMP_NUM_THREADS=1
# - cd test-suite
# - mkdir /tmp/save
# - make run-tests-serial
# - rm -r /tmp/save
#### BUILDS ON GALILEO ####
#build:intel:
# tags: [galileo]
# script:
# - module load intel/pe-xe-2017--binary intelmpi/2017--binary mkl/2017--binary
# - ./configure --enable-openmp
# - make pw cp
# - export OMP_NUM_THREADS=2
# - cd test-suite
# - mkdir -p /tmp/save
# - make run-tests-pw-parallel
# - make run-tests-cp-parallel
# - rm -r /tmp/save