-
Notifications
You must be signed in to change notification settings - Fork 51
57 lines (53 loc) · 1.91 KB
/
intel.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
name: 🐧 Intel
on: [push, pull_request]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-intel
cancel-in-progress: true
jobs:
icc_cxxonly:
name: ICC C++ only
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: Install
run: |
sudo .github/workflows/dependencies/install_icc
- name: Build
# Due to compiler bugs in Intel compiler, we need to disable warning 1011
# (missing return value), otherwise `if constexpr` functions
# don't compile.
# See https://community.intel.com/t5/Intel-C-Compiler/quot-if-constexpr-quot-and-quot-missing-return-statement-quot-in/td-p/1154551
# Using a local pragma does not work due to the reasons stated there.
env: {CXXFLAGS: -Werror -wd1011}
run: |
set +e; source /opt/intel/oneapi/setvars.sh; set -e
share/openPMD/download_samples.sh build
cmake -S . -B build \
-DCMAKE_C_COMPILER=$(which icc) \
-DCMAKE_CXX_COMPILER=$(which icpc) \
-DopenPMD_USE_PYTHON=OFF \
-DopenPMD_USE_MPI=OFF
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure
icx_cxxonly:
name: ICX C++ only
runs-on: ubuntu-20.04
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v4
- name: Install
run: |
sudo .github/workflows/dependencies/install_icx
- name: Build
env: {CXXFLAGS: -Werror}
run: |
set +e; source /opt/intel/oneapi/setvars.sh; set -e
share/openPMD/download_samples.sh build
cmake -S . -B build \
-DCMAKE_C_COMPILER=$(which icx) \
-DCMAKE_CXX_COMPILER=$(which icpx) \
-DopenPMD_USE_PYTHON=OFF \
-DopenPMD_USE_MPI=OFF
cmake --build build --parallel 2
ctest --test-dir build --output-on-failure