-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (50 loc) · 1.36 KB
/
build_champ_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: CHAMP release build with Intel
on:
push:
branches:
- 'releases/**'
- main
tags:
- v2.*.*
- v3.*.*
pull_request:
branches:
- 'releases/**'
- main
workflow_dispatch:
jobs:
build_champ:
strategy:
matrix:
toolchain: ['intel']
name: Build CHAMP with ${{ matrix.toolchain }} OneAPI GitHub-hosted runner
runs-on: ubuntu-latest
timeout-minutes: 180
defaults:
run:
shell: bash --noprofile --norc {0}
steps:
- name: Use Intel oneAPI GitHub Actions fast setup
uses: neelravi/[email protected]
with:
components: fortran,cpp,mpi,mkl
- name: Get the CHAMP code
uses: actions/checkout@v4
- name: Compile the CHAMP code using Intel and run all tests
run: |
source /opt/intel/oneapi/setvars.sh
cmake --version
ifx --version
icx --version
mpiifx --version
mpiicx --version
cmake -H. -Bbuild \
-DCMAKE_Fortran_COMPILER=mpiifort \
-DCMAKE_C_COMPILER=mpiicx \
-DBLA_STATIC=ON \
-DBLA_VENDOR=Intel10_64lp_seq \
-DENABLE_TREXIO=OFF \
-DENABLE_QMCKL=OFF \
cmake --build build -- -j2
cd build
ctest --output-on-failure --verbose -LE "(TREXIO|QMCKL)"