Skip to content

Commit a936835

Browse files
committed
Align Linux Intel SYCL target and device
1 parent fb25aee commit a936835

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

scripts/ci/sycl_x86_setup.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ def configure_platform(platform: str) -> None:
2525
settings = {
2626
"linux-x86_64": {
2727
"toolchain_asset": "sycl_linux.tar.gz",
28-
"device_selector": "",
28+
"device_selector": "native_cpu:cpu",
2929
"opencv_apps": "ON",
30+
"sycl_targets": "native_cpu",
3031
},
3132
"windows-x86_64": {
3233
"toolchain_asset": "sycl_windows.tar.gz",
3334
"device_selector": "opencl:cpu",
3435
"opencv_apps": "ON",
36+
"sycl_targets": "spir64",
3537
},
3638
}.get(platform)
3739

@@ -42,7 +44,7 @@ def configure_platform(platform: str) -> None:
4244
write_env("DEVICE_SELECTOR", settings["device_selector"])
4345
write_env("ITLABAI_ENABLE_OPENCV_APPS", settings["opencv_apps"])
4446
write_env("ITLABAI_SYCL_IMPLEMENTATION", "IntelLLVM")
45-
write_env("ITLABAI_SYCL_TARGETS", "spir64")
47+
write_env("ITLABAI_SYCL_TARGETS", settings["sycl_targets"])
4648

4749

4850
def setup_linux_runtime() -> None:

0 commit comments

Comments
 (0)