forked from 2decomp-fft/2decomp-fft
-
Notifications
You must be signed in to change notification settings - Fork 0
221 lines (187 loc) · 7.96 KB
/
Build_all.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
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
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# This is a basic workflow to help you get started with Actions
name: Build_all
# Controls when the action will run. Triggers the workflow on push
# events but only for the master branch
on:
push:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains jobs called "bld_gnu_ompi", "bld_gnu_mpich" "bld_nvidia", "bld_intel", "bld_fftw3" and "bld_caliper"
bld_gnu_ompi:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y gfortran openmpi-bin libopenmpi-dev cmake
# Runs a set of commands using the runners shell
- name: Compile
run: |
export FC=mpif90.openmpi
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON
cmake --build build --verbose
# Runs a set of commands using the runners shell
- name: Single precision
run: |
export FC=mpif90.openmpi
rm -rf ./build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON -DDOUBLE_PRECISION=OFF
cmake --build build --verbose
# Runs a set of commands using the runners shell
- name: Double precision with single precision IO
run: |
export FC=mpif90.openmpi
rm -rf ./build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON -DSINGLE_PRECISION_OUTPUT=ON
cmake --build build --verbose
# Runs a set of commands using the runners shell
- name: Padded alltoall transpose operations
run: |
export FC=mpif90.openmpi
rm -rf ./build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON -DEVEN=ON
cmake --build build --verbose
# Runs a set of commands using the runners shell
- name: Debug flag for halo operations
run: |
export FC=mpif90.openmpi
rm -rf ./build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON -DHALO_DEBUG=ON
cmake --build build --verbose
bld_gnu_mpich:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y gfortran mpich libmpich-dev cmake
# Runs a set of commands using the runners shell
- name: Compile
run: |
export FC=mpif90.mpich
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON
cmake --build build --verbose
bld_nvidia:
# The type of runner that the job will run on
runs-on: ubuntu-latest
env:
TMP: /opt/nvidia/hpc_sdk/Linux_x86_64/23.5/comm_libs/mpi/bin:/opt/nvidia/hpc_sdk/Linux_x86_64/23.5/compilers/bin
### TMP: /opt/nvidia/hpc_sdk/Linux_x86_64/22.7/comm_libs/mpi/bin:/opt/nvidia/hpc_sdk/Linux_x86_64/22.7/compilers/bin
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Add Nvidia HPC SDK
- name: setup repo
run: |
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
# Install dependencies
- name: install
run: |
sudo apt-get update -y
sudo apt-get install -y nvhpc-23-5
### sudo apt-get install -y nvhpc-22-7
### sudo apt-get install -y nvhpc-22-7-cuda-multi
# Runs a set of commands using the runners shell
- name: CPU version
run: |
PATH=$TMP:$PATH FC=mpif90 cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON
PATH=$TMP:$PATH cmake --build build --verbose
### - name: GPU version
### run: |
### PATH=$TMP:$PATH make clean
### PATH=$TMP:$PATH make CMP=nvhpc FFT=cufft PARAMOD=gpu CUFFT_PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/22.7/compilers
bld_intel:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Add Intel OneApi
- name: setup repo
run: |
sudo echo "deb [trusted=yes] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
# Install dependencies
- name: install
run: |
sudo apt-get update
sudo apt-get install -y intel-oneapi-common-vars intel-oneapi-compiler-fortran intel-oneapi-mkl intel-oneapi-mkl-devel intel-oneapi-mpi intel-oneapi-mpi-devel cmake
# Runs a set of commands using the runners shell
- name: Compile
run: |
source /opt/intel/oneapi/setvars.sh
export FC=mpiifort
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DBUILD_TESTING=ON
cmake --build build --verbose
# Runs a set of commands using the runners shell
- name: Compile
run: |
source /opt/intel/oneapi/setvars.sh
export FC=mpiifort
export MKL_DIR=${MKLROOT}/lib/cmake/mkl
rm -rf ./build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DFFT_Choice=mkl -DBUILD_TESTING=ON
cmake --build build --verbose
bld_fftw3:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y gfortran openmpi-bin libopenmpi-dev libfftw3-dev
# Runs a set of commands using the runners shell
- name: Regular FFTW3
run: |
export FC=mpif90
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DFFT_Choice=fftw -DBUILD_TESTING=ON
cmake --build build --verbose
- name: New FFTW3
run: |
export FC=mpif90
rm -rf ./build
cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DFFT_Choice=fftw_f03 -DBUILD_TESTING=ON
cmake --build build --verbose
bld_caliper:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
# Runs a single command using the runners shell
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y gfortran openmpi-bin libopenmpi-dev cmake gcc g++
# Runs a set of commands using the runners shell
- name: Compile caliper
run: |
wget --no-check-certificate https://github.com/LLNL/Caliper/archive/refs/tags/v2.8.0.tar.gz
tar xzf v2.8.0.tar.gz && cd Caliper-2.8.0
mkdir build && cd build
echo ${PWD}
cmake -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_Fortran_COMPILER=gfortran -DCMAKE_INSTALL_PREFIX=${HOME}/Caliper-2.8.0_bld -DWITH_FORTRAN=yes -DWITH_MPI=yes ../
make -j && make install
cd ../../
- name: Compile
run: |
export caliper_DIR=${HOME}/Caliper-2.8.0_bld/share/cmake/caliper
FC=mpif90 cmake -S . -B build -DCMAKE_BUILD_TYPE=Dev -DENABLE_PROFILER=caliper -DBUILD_TESTING=ON
cmake --build build --verbose