@@ -873,7 +873,7 @@ def get_sycl_ls_verbose(sycl_device, env):
873
873
# matches that architecture using the backend:device-num device selection
874
874
# scheme.
875
875
filtered_sycl_devices = []
876
- for sycl_device in remove_level_zero_suffix ( config .sycl_devices ) :
876
+ for sycl_device in config .sycl_devices :
877
877
backend , device_arch = sycl_device .split (":" , 1 )
878
878
879
879
if not "arch-" in device_arch :
@@ -887,7 +887,9 @@ def get_sycl_ls_verbose(sycl_device, env):
887
887
888
888
detected_architectures = []
889
889
890
- for line in get_sycl_ls_verbose (backend + ":*" , env ):
890
+ platform_devices = remove_level_zero_suffix (backend + ":*" )
891
+
892
+ for line in get_sycl_ls_verbose (platform_devices , env ):
891
893
if re .match (r" *Architecture:" , line ):
892
894
_ , architecture = line .strip ().split (":" , 1 )
893
895
detected_architectures .append (architecture .strip ())
@@ -906,7 +908,7 @@ def get_sycl_ls_verbose(sycl_device, env):
906
908
907
909
if not filtered_sycl_devices and not config .test_mode == "build-only" :
908
910
lit_config .error (
909
- "No sycl devices selected! Check your device " " architecture filters."
911
+ "No sycl devices selected! Check your device architecture filters."
910
912
)
911
913
912
914
config .sycl_devices = filtered_sycl_devices
0 commit comments