Skip to content

Commit 107e543

Browse files
committed
Build OpenMP runtime into Intel SYCL toolchain
1 parent 94eb6fb commit 107e543

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

scripts/ci/sycl_x86_setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def build_linux_native_cpu_toolchain() -> Path:
136136
"--cmake-gen",
137137
"Ninja",
138138
"--use-zstd",
139+
"--cmake-opt=-DLLVM_ENABLE_RUNTIMES=compiler-rt;openmp",
139140
"-DCMAKE_C_COMPILER=gcc-13",
140141
"-DCMAKE_CXX_COMPILER=g++-13",
141142
"-DCMAKE_C_COMPILER_LAUNCHER=ccache",
@@ -149,6 +150,7 @@ def build_linux_native_cpu_toolchain() -> Path:
149150
)
150151

151152
run(["cmake", "--build", str(build_dir), "--target", "sycl-toolchain", "--parallel"])
153+
run(["cmake", "--build", str(build_dir), "--target", "install-openmp", "--parallel"])
152154
run(["cmake", "--build", str(build_dir), "--target", "deploy-sycl-toolchain", "--parallel"])
153155

154156
if not linux_native_cpu_toolchain_ready(toolchain_root):

0 commit comments

Comments
 (0)