Skip to content

Commit 03c871a

Browse files
committed
Activate oneAPI env
1 parent 05ccb88 commit 03c871a

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/generate_coverage.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,15 @@ jobs:
108108
run: cat example/test.cpp
109109

110110
- name: Build test file
111-
run: icpx -fsycl test.cpp -DMKL_ILP64 -qmkl-ilp64=parallel -qtbb -o test.x
111+
run: |
112+
[ -f /opt/intel/oneapi/setvars.sh ] && source /opt/intel/oneapi/setvars.sh
113+
icpx -fsycl test.cpp -DMKL_ILP64 -qmkl-ilp64=parallel -qtbb -o test.x
112114
working-directory: example
113115

114116
- name: Run test file
115-
run: ./test.x
117+
run: |
118+
[ -f /opt/intel/oneapi/setvars.sh ] && source /opt/intel/oneapi/setvars.sh
119+
./test.x
116120
working-directory: example
117121

118122
new-release:

0 commit comments

Comments
 (0)