Skip to content
This repository was archived by the owner on Jul 22, 2026. It is now read-only.

Commit 1dbf531

Browse files
committed
Use Intel OpenMP headers in SYCL CI
1 parent 3322b4f commit 1dbf531

1 file changed

Lines changed: 10 additions & 4 deletions

File tree

scripts/ci/sycl_x86_setup.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,17 @@ def setup_unix_compilers(sycl_root: Path) -> None:
200200
main_error("Unable to locate libiomp5.so for the SYCL toolchain")
201201

202202
resource_dir = Path(capture([str(cxx_path), "-print-resource-dir"]))
203-
openmp_header = resource_dir / "include" / "omp.h"
204-
if not openmp_header.is_file():
203+
openmp_header = find_file(
204+
[
205+
resource_dir / "include",
206+
sycl_root,
207+
Path("/opt/intel/oneapi"),
208+
],
209+
"omp.h",
210+
)
211+
if openmp_header is None:
205212
main_error(
206-
"Unable to locate compiler-provided omp.h under "
207-
f"{resource_dir / 'include'}"
213+
"Unable to locate Intel-provided omp.h under the SYCL toolchain"
208214
)
209215

210216
write_env("ITLABAI_OPENMP_FLAGS", "-fopenmp=libiomp5")

0 commit comments

Comments
 (0)