File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
4850def setup_linux_runtime () -> None :
You can’t perform that action at this time.
0 commit comments