-
Notifications
You must be signed in to change notification settings - Fork 4
99 lines (92 loc) · 2.06 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
name: Tests
on:
push:
branches:
- main
pull_request:
jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Checks
uses: pre-commit/action@v3.0.1
mkl:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
uses: ./
with:
components: mkl
- name: Build/run
run: |
# should not need to source setvars.sh
# try again for 2024.1
source /opt/intel/oneapi/setvars.sh
cmake -B build -DENABLE_MKL=on test
make -C build all test
compilers:
env:
CC: /opt/intel/oneapi/compiler/latest/bin/icx
CXX: /opt/intel/oneapi/compiler/latest/bin/icpx
FC: /opt/intel/oneapi/compiler/latest/bin/ifx
# fortran needs this because libimf does not have RPATH to find libintlc.so
LD_LIBRARY_PATH: /opt/intel/oneapi/compiler/latest/lib
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
uses: ./
with:
components: |
icx
ifx
impi
- name: Build/run
run: |
cmake -B build -DENABLE_COMPILERS=on test
make -C build all test
- name: Test mpi
run: |
cd test/compilers
mkdir build
./mpi-test.sh
dal:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
uses: ./
with:
components: dal
- name: Test
run: source /opt/intel/oneapi/setvars.sh
ipp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
uses: ./
with:
components: ipp
- name: Test
run: source /opt/intel/oneapi/setvars.sh
rest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install
uses: ./
with:
components: |
ccl
dnn
dpl
ippcp
tbb
- name: Test
run: source /opt/intel/oneapi/setvars.sh