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

Commit 4c8d7be

Browse files
committed
Install OpenMP from LLVM runtimes build
1 parent 107e543 commit 4c8d7be

1 file changed

Lines changed: 22 additions & 2 deletions

File tree

scripts/ci/sycl_x86_setup.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,18 @@ def linux_native_cpu_toolchain_ready(toolchain_root: Path) -> bool:
3737
find_file([toolchain_root], "remangled-l64-signed_char.libspirv.bc")
3838
is not None
3939
)
40-
return has_compiler and has_runtime and has_native_cpu_libspirv
40+
has_openmp_runtime = (
41+
find_file([toolchain_root], "libiomp5.so") is not None
42+
or find_file([toolchain_root], "libomp.so") is not None
43+
)
44+
has_openmp_header = find_file([toolchain_root], "omp.h") is not None
45+
return (
46+
has_compiler
47+
and has_runtime
48+
and has_native_cpu_libspirv
49+
and has_openmp_runtime
50+
and has_openmp_header
51+
)
4152

4253

4354
def configure_platform(platform: str) -> None:
@@ -150,7 +161,16 @@ def build_linux_native_cpu_toolchain() -> Path:
150161
)
151162

152163
run(["cmake", "--build", str(build_dir), "--target", "sycl-toolchain", "--parallel"])
153-
run(["cmake", "--build", str(build_dir), "--target", "install-openmp", "--parallel"])
164+
run(
165+
[
166+
"cmake",
167+
"--build",
168+
str(build_dir / "runtimes" / "runtimes-bins"),
169+
"--target",
170+
"install",
171+
"--parallel",
172+
]
173+
)
154174
run(["cmake", "--build", str(build_dir), "--target", "deploy-sycl-toolchain", "--parallel"])
155175

156176
if not linux_native_cpu_toolchain_ready(toolchain_root):

0 commit comments

Comments
 (0)