-
Notifications
You must be signed in to change notification settings - Fork 37
166 lines (153 loc) · 7.03 KB
/
linux.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
name: linux
on: [push, pull_request]
jobs:
nyx_gnu:
name: [email protected] Release
runs-on: ubuntu-latest
env: {CXXFLAGS: "-Werror -Woverloaded-virtual -Wunreachable-code"}
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies.sh
- name: Build & Install
run: |
cmake -S . -B build \
-DNyx_HEATCOOL=yes \
-DNyx_HYDRO=yes
cmake --build build --parallel 2
nyx_clang:
name: [email protected] Debug
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_clang6.sh
- name: Build & Install
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=Debug \
-DNyx_HEATCOOL=yes \
-DNyx_HYDRO=yes \
-DCMAKE_C_COMPILER=$(which clang) \
-DCMAKE_CXX_COMPILER=$(which clang++)
cmake --build build --parallel 2
nyx-cuda11:
name: NVCC 11.2 SP [Linux]
runs-on: ubuntu-20.04
env: {CXXFLAGS: "-fno-operator-names"}
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: .github/workflows/dependencies/dependencies_nvcc11.sh
- name: build Nyx
run: |
export PATH=/usr/local/nvidia/bin:/usr/local/cuda/bin:${PATH}
export LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib:${LD_LIBRARY_PATH}
which nvcc || echo "nvcc not in PATH!"
ls /usr/local/cuda/*
cmake -S . -B build_adiabatic \
-DNyx_HEATCOOL=no \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=CUDA \
-DCMAKE_C_COMPILER=$(which gcc) \
-DCMAKE_CXX_COMPILER=$(which g++) \
-DCMAKE_CUDA_HOST_COMPILER=$(which g++) \
-DCMAKE_CUDA_STANDARD=17 \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CUDA_ARCHITECTURES=80 \
-DAMReX_CUDA_ARCH=8.0
cmake --build build_adiabatic --parallel 2
cmake -S . -B build \
-DNyx_HEATCOOL=yes \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=CUDA \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_C_COMPILER=$(which gcc) \
-DCMAKE_CXX_COMPILER=$(which g++) \
-DCMAKE_CUDA_HOST_COMPILER=$(which g++) \
-DCMAKE_CUDA_STANDARD=17 \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_CUDA_ARCHITECTURES=80 \
-DAMReX_CUDA_ARCH=8.0
cmake --build build --parallel 2
nyx-dpcpp:
name: DPCPP C++17
runs-on: ubuntu-20.04
env: {CXXFLAGS: "-fno-operator-names"}
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_dpcpp.sh
- name: Build & Install
run: |
set +e
source /opt/intel/oneapi/setvars.sh
set -e
cmake -S . -B build_adiabatic \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="17" \
-DNyx_HEATCOOL=no \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=SYCL \
-DCMAKE_C_COMPILER=$(which clang) \
-DCMAKE_CXX_COMPILER=$(which dpcpp)
cmake --build build_adiabatic --parallel 2
cmake -S . -B build \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="17" \
-DNyx_HEATCOOL=yes \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=SYCL \
-DCMAKE_C_COMPILER=$(which clang) \
-DCMAKE_CXX_COMPILER=$(which dpcpp)
cmake --build build --parallel 2
# note: setting the CXX compiler ID is a work-around for
# the 2021.1 DPC++ release / CMake 3.19.0-3.19.1
# https://gitlab.kitware.com/cmake/cmake/-/issues/21551#note_869580
nyx-hip:
name: HIP [email protected] C++17
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: .github/workflows/dependencies/dependencies_hip.sh
- name: Build & Install
run: |
source /etc/profile.d/rocm.sh
hipcc --version
# "mpic++ --showme" forgets open-pal in Ubuntu 20.04 + OpenMPI 4.0.3
# https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1941786
# https://github.com/open-mpi/ompi/issues/9317
export LDFLAGS="-lopen-pal"
cmake -S . -B build_adiabatic \
-DNyx_HEATCOOL=no \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=HIP \
-DAMReX_AMD_ARCH=gfx908 \
-DCMAKE_C_COMPILER=$(which hipcc) \
-DCMAKE_CXX_COMPILER=$(which hipcc) \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="17" \
-DCMAKE_CXX_STANDARD=17
cmake --build build_adiabatic --parallel 2
cmake -S . -B build \
-DNyx_HEATCOOL=yes \
-DNyx_HYDRO=yes \
-DNyx_OMP=no \
-DNyx_GPU_BACKEND=HIP \
-DAMReX_AMD_ARCH=gfx908 \
-DCMAKE_C_COMPILER=$(which hipcc) \
-DCMAKE_CXX_COMPILER=$(which hipcc) \
-DCMAKE_CXX_COMPILER_ID="Clang" \
-DCMAKE_CXX_COMPILER_VERSION=12.0 \
-DCMAKE_CXX_STANDARD_COMPUTED_DEFAULT="17" \
-DCMAKE_CXX_STANDARD=17
cmake --build build --parallel 2