-
Notifications
You must be signed in to change notification settings - Fork 1
130 lines (126 loc) · 4.32 KB
/
main.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
name: dtfft workflow
on: [push]
jobs:
open_mpi:
name: Open MPI with Coverage
runs-on: ubuntu-latest
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
- name: Checkout
uses: actions/checkout@v4
- name: Create Build Directory
run: mkdir build
- name: Building
working-directory: ./build
run: |
cmake -DCMAKE_C_COMPILER=gcc-14 \
-DCMAKE_CXX_COMPILER=g++-14 \
-DCMAKE_Fortran_COMPILER=gfortran-14 \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_WITH_FFTW=on \
-DDTFFT_MPI_VENDOR=openmpi \
-DDTFFT_BUILD_C_CXX_API=on ..
make VERBOSE=1
- name: Testing
working-directory: ./build
run: DTFFT_ENABLE_LOG=1 CTEST_OUTPUT_ON_FAILURE=1 make coverage
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
mpich_persistent:
name: MPICH with persistent communications
runs-on: ubuntu-latest
steps:
- name: Get Requirements
run: |
sudo apt-get update
sudo apt-get -y install gfortran-13
sudo apt-get install mpich libmpich-dev
sudo apt-get install libfftw3-dev
ls -lah /usr/include | grep mpi
- name: Checkout
uses: actions/checkout@v4
- name: Create Build Directory
run: mkdir build
- name: Building
working-directory: ./build
run: |
cmake -DCMAKE_C_COMPILER=gcc-13 \
-DCMAKE_CXX_COMPILER=g++-13 \
-DCMAKE_Fortran_COMPILER=gfortran-13 \
-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 ..
make VERBOSE=1
- name: Testing
working-directory: ./build
run: DTFFT_ENABLE_LOG=1 make test
mpich_macos:
name: macOS MPICH with persistent communications
runs-on: macos-latest
steps:
- name: Get Requirements
run: |
brew install mpich
- name: Checkout
uses: actions/checkout@v4
- name: Create Build Directory
run: mkdir build
- name: Building
working-directory: ./build
run: |
cmake -DCMAKE_C_COMPILER=gcc-12 \
-DCMAKE_CXX_COMPILER=g++-12 \
-DCMAKE_Fortran_COMPILER=gfortran-12 \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_ENABLE_PERSISTENT_COMM=on \
-DDTFFT_BUILD_SHARED=on \
-DDTFFT_BUILD_C_CXX_API=off ..
make VERBOSE=1
- name: Testing
working-directory: ./build
run: DTFFT_ENABLE_LOG=1 CTEST_OUTPUT_ON_FAILURE=1 make test
cuda_shared:
name: CUDA build with HPC-SDK
runs-on: ubuntu-latest
steps:
- name: Get Requirements
run: |
echo 'deb [trusted=yes] https://developer.download.nvidia.com/hpc-sdk/ubuntu/amd64 /' | sudo tee /etc/apt/sources.list.d/nvhpc.list
sudo apt-get update -y
sudo apt-get install nvhpc-24-11
- name: Checkout
uses: actions/checkout@v4
- name: Create Build Directory
run: mkdir build
- name: Building
working-directory: ./build
run: |
PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.11/comm_libs/mpi/bin:${PATH}
PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.11/compilers/bin:${PATH}
PATH=/opt/nvidia/hpc_sdk/Linux_x86_64/24.11/cuda/bin:${PATH}
export PATH
cmake -DCMAKE_C_COMPILER=nvc \
-DCMAKE_CXX_COMPILER=nvc++ \
-DCMAKE_Fortran_COMPILER=nvfortran \
-DCMAKE_BUILD_TYPE=Debug \
-DDTFFT_RUNNING_CICD=on \
-DDTFFT_ENABLE_PERSISTENT_COMM=on \
-DDTFFT_BUILD_SHARED=on \
-DDTFFT_BUILD_C_CXX_API=on \
-DDTFFT_WITH_PROFILER=on \
-DDTFFT_WITH_CUDA=on \
-DDTFFT_WITH_CUFFT=on ..
make VERBOSE=1