-
-
Notifications
You must be signed in to change notification settings - Fork 185
110 lines (96 loc) · 3.39 KB
/
oneapi.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
name: oneAPI compilers
on:
pull_request:
branches:
- main
push:
branches:
- "main"
tags:
- "v*"
merge_group:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: fenicsproject/test-env:current-oneapi
env:
PETSC_ARCH: ${{ matrix.petsc_arch }}
strategy:
matrix:
petsc_arch: [linux-gnu-real32-32, linux-gnu-real64-32, linux-gnu-complex128-32]
name: oneAPI build and test (${{ matrix.petsc_arch }})
steps:
- uses: actions/checkout@v4
- name: Install Basix
run: |
. /opt/intel/oneapi/setvars.sh
pip install git+https://github.com/FEniCS/basix.git
- name: Clone FFCx
uses: actions/checkout@v4
with:
path: ./ffcx
repository: FEniCS/ffcx
ref: main
- name: Install FFCx C interface
run: |
. /opt/intel/oneapi/setvars.sh
cmake -B ufcx-build-dir -S ffcx/cmake/
cmake --build ufcx-build-dir
cmake --install ufcx-build-dir
- name: Configure DOLFINx C++
run: |
. /opt/intel/oneapi/setvars.sh
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -DDOLFINX_ENABLE_SCOTCH=on -DDOLFINX_ENABLE_KAHIP=on -DDOLFINX_UFCX_PYTHON=off -B build -S cpp/
- name: Build and install DOLFINx C++ library
run: |
. /opt/intel/oneapi/setvars.sh
cmake --build build
cmake --install build
- name: Install UFL and FFCx modules
run: |
. /opt/intel/oneapi/setvars.sh
pip install git+https://github.com/FEniCS/ufl.git
pip install ffcx/
- name: Build and run DOLFINx C++ unit tests (serial and MPI)
run: |
. /opt/intel/oneapi/setvars.sh
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build/test/ -S cpp/test/
cmake --build build/test
cd build/test
ctest --output-on-failure -R unittests
mpiexec -n 2 ctest --output-on-failure -R unittests
- name: Build and run DOLFINx C++ regression tests (serial and MPI (np=2))
run: |
. /opt/intel/oneapi/setvars.sh
cmake -G Ninja -DCMAKE_BUILD_TYPE=Developer -B build/demo/ -S cpp/demo/
cmake --build build/demo
cd build/demo
ctest -R demo -R serial
ctest -R demo -R mpi_2
- name: Build DOLFINx Python interface
run: |
. /opt/intel/oneapi/setvars.sh
pip -v install --check-build-dependencies --no-build-isolation python/
- name: Set default DOLFINx JIT options
run: |
mkdir -p ~/.config/dolfinx
echo '{ "cffi_extra_compile_args": ["-g0", "-O0" ] }' > ~/.config/dolfinx/dolfinx_jit_options.json
- name: Run DOLFINx demos (Python, serial)
run: |
. /opt/intel/oneapi/setvars.sh
pytest -v -n=2 -m serial --durations=10 python/demo/test.py
- name: Run DOLFINx demos (Python, MPI (np=2))
run: |
. /opt/intel/oneapi/setvars.sh
pytest -m mpi --num-proc=2 python/demo/test.py
- name: Run DOLFINx Python unit tests (serial)
run: |
. /opt/intel/oneapi/setvars.sh
pytest -n=auto --durations=50 python/test/unit
- name: Run DOLFINx Python unit tests (MPI, np=2)
run: |
. /opt/intel/oneapi/setvars.sh
mpiexec -n 2 pytest python/test/unit