|
22 | 22 |
|
23 | 23 |
|
24 | 24 | def linux_native_cpu_toolchain_root() -> Path: |
25 | | - return Path(require_env("RUNNER_TEMP")) / "intel-nativecpu-toolchain" / "install" |
| 25 | + return Path(require_env("RUNNER_TEMP")) / "intel-nativecpu-toolchain" / "build" |
26 | 26 |
|
27 | 27 |
|
28 | 28 | def linux_native_cpu_toolchain_ready(toolchain_root: Path) -> bool: |
@@ -102,7 +102,7 @@ def build_linux_native_cpu_toolchain() -> Path: |
102 | 102 |
|
103 | 103 | toolchain_base = toolchain_root.parent |
104 | 104 | source_dir = toolchain_base / "src" |
105 | | - build_dir = toolchain_base / "build" |
| 105 | + build_dir = toolchain_root |
106 | 106 | llvm_tag = require_env("INTEL_LLVM_TAG") |
107 | 107 |
|
108 | 108 | toolchain_base.mkdir(parents=True, exist_ok=True) |
@@ -143,20 +143,18 @@ def build_linux_native_cpu_toolchain() -> Path: |
143 | 143 | "-DCMAKE_CXX_COMPILER=g++-13", |
144 | 144 | "-DCMAKE_C_COMPILER_LAUNCHER=ccache", |
145 | 145 | "-DCMAKE_CXX_COMPILER_LAUNCHER=ccache", |
146 | | - f"-DCMAKE_INSTALL_PREFIX={toolchain_root}", |
147 | 146 | "-DSYCL_ENABLE_BACKENDS=native_cpu", |
148 | 147 | "-DSYCL_INCLUDE_TESTS=OFF", |
149 | 148 | "-DLLVM_INSTALL_UTILS=ON", |
150 | 149 | ] |
151 | 150 | ) |
152 | 151 |
|
153 | 152 | run(["cmake", "--build", str(build_dir), "--target", "sycl-toolchain", "--parallel"]) |
154 | | - run(["cmake", "--install", str(build_dir)]) |
155 | 153 |
|
156 | 154 | if not linux_native_cpu_toolchain_ready(toolchain_root): |
157 | 155 | main_error( |
158 | 156 | "Intel SYCL native_cpu toolchain build completed, but required files " |
159 | | - "were not installed" |
| 157 | + "were not produced in the build tree" |
160 | 158 | ) |
161 | 159 |
|
162 | 160 | write_env("SYCL_ROOT", str(toolchain_root)) |
|
0 commit comments