-
Notifications
You must be signed in to change notification settings - Fork 2
198 lines (192 loc) · 6.62 KB
/
gnu_linux.yml
File metadata and controls
198 lines (192 loc) · 6.62 KB
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
name: GNU Linux
on: [push]
jobs:
openmpi_coverage:
name: GCC-14 + OpenMPI with Coverage
runs-on: ubuntu-24.04
env:
CC: "gcc-14"
CXX: "g++-14"
FC: "gfortran-14"
DTFFT_ENABLE_LOG: "1"
DTFFT_MEASURE_WARMUP_ITERS: "CUDA"
DTFFT_MEASURE_ITERS: "-1"
# DTFFT_ENABLE_FOURIER_RESHAPE: "1"
DTFFT_ENABLE_KERNEL_AUTOTUNE: "1"
DTFFT_ENABLE_MPI: "1"
DTFFT_RESHAPE_BACKEND: "MPI_DT"
DTFFT_TRANSPOSE_MODE: "pack"
DTFFT_ACCESS_MODE: "pack"
LD_LIBRARY_PATH: "/home/runner/work/dtFFT/dtFFT/build:$LD_LIBRARY_PATH"
steps:
- name: Get Requirements
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -q update
sudo apt-get -y install gfortran-14
sudo apt-get install libopenmpi-dev openmpi-bin
sudo apt-get install libfftw3-dev
sudo apt-get install lcov
sudo apt-get install libzfp-dev
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_WITH_FFTW=on \
-DDTFFT_MPI_VENDOR=openmpi \
-DDTFFT_BUILD_C_CXX_API=on \
-DDTFFT_WITH_CUDA=on \
-DDTFFT_WITH_MOCK_ENABLED=on \
-DDTFFT_WITH_ZFP=on
cmake --build build
- name: Coverage
run: cmake --build build --target coverage
- name: Install
run: sudo cmake --install build
- name: Test install
working-directory: ./tests/install
run: |
cmake -B build -S . -Ddtfft_DIR=/usr/local/lib/cmake/dtfft/
cmake --build build
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: ./build/coverage.info
verbose: true
token: ${{ secrets.CODECOV_TOKEN }}
mpich:
name: GCC-12 + MPICH with persistent communications
runs-on: ubuntu-22.04
env:
CC: "gcc-12"
CXX: "g++-12"
FC: "gfortran-12"
DTFFT_ENABLE_LOG: "1"
steps:
- name: Get Requirements
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -q update
sudo apt-get -y install gfortran-12
sudo apt-get install mpich libmpich-dev
sudo apt-get install libfftw3-dev
sudo apt-get install lcov
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_WITH_FFTW=on \
-DDTFFT_ENABLE_PERSISTENT_COMM=on \
-DDTFFT_BUILD_SHARED=off \
-DDTFFT_BUILD_C_CXX_API=on \
-DDTFFT_WITH_RMA=on
cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure
- name: Install
run: sudo cmake --install build
- name: Test install
working-directory: ./tests/install
run: |
cmake -B build -S . -Ddtfft_DIR=/usr/local/lib/cmake/dtfft/
cmake --build build
openmpi:
name: GCC-10 + OpenMPI
runs-on: ubuntu-22.04
env:
CC: "gcc-10"
CXX: "g++-10"
FC: "gfortran-10"
DTFFT_ENABLE_LOG: "1"
steps:
- name: Get Requirements
run: |
sudo apt-get -q update
sudo apt-get -y install libopenmpi-dev openmpi-bin
sudo apt-get install lcov
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_ENABLE_PERSISTENT_COMM=on \
-DDTFFT_BUILD_SHARED=on \
-DDTFFT_MPI_VENDOR=openmpi \
-DDTFFT_BUILD_C_CXX_API=on
cmake --build build
- name: Test
run: ctest --test-dir build --output-on-failure
- name: Install
run: sudo cmake --install build
- name: Test install
working-directory: ./tests/install
run: |
cmake -B build -S . -Ddtfft_DIR=/usr/local/lib/cmake/dtfft/
cmake --build build
openmpi_cuda:
name: GCC-12 + OpenMPI + CUDA + NCCL
runs-on: ubuntu-24.04
env:
CC: "gcc-12"
CXX: "g++-12"
FC: "gfortran-12"
CUDACXX: "/usr/local/cuda/bin/nvcc"
DTFFT_ENABLE_LOG: "1"
DTFFT_PLATFORM: "host"
steps:
- name: Free space
run: |
sudo rm -rf /usr/local/lib/android || true
sudo rm -rf /usr/share/dotnet || true
- name: Get Requirements
run: |
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-ubuntu2404.pin
sudo mv cuda-ubuntu2404.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/12.8.0/local_installers/cuda-repo-ubuntu2404-12-8-local_12.8.0-570.86.10-1_amd64.deb
sudo dpkg -i cuda-repo-ubuntu2404-12-8-local_12.8.0-570.86.10-1_amd64.deb
sudo cp /var/cuda-repo-ubuntu2404-12-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -q update
sudo apt-get -y install gfortran-12
sudo apt-get install libopenmpi-dev openmpi-bin
sudo apt-get install libfftw3-dev
sudo apt-get install lcov
sudo apt-get -y install cuda-toolkit-12-8
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/x86_64/cuda-keyring_1.1-1_all.deb
sudo dpkg -i cuda-keyring_1.1-1_all.deb
sudo apt update
sudo apt install libnccl2 libnccl-dev
- name: Checkout
uses: actions/checkout@v4
- name: Build
run: |
cmake -B build -S . \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_WITH_FFTW=on \
-DDTFFT_WITH_CUFFT=on \
-DDTFFT_ENABLE_PERSISTENT_COMM=on \
-DDTFFT_BUILD_SHARED=on \
-DDTFFT_BUILD_C_CXX_API=on \
-DDTFFT_WITH_CUDA=on \
-DDTFFT_MPI_VENDOR=openmpi \
-DDTFFT_WITH_NCCL=on \
-DSKIP_CUDA_COVERAGE=on
cmake --build build --verbose
- name: Test
run: CTEST_OUTPUT_ON_FAILURE=1 cmake --build build --target coverage
- name: Install
run: sudo cmake --install build
- name: Test install
working-directory: ./tests/install
run: |
cmake -B build -S . -Ddtfft_DIR=/usr/local/lib/cmake/dtfft/
cmake --build build