|
177 | 177 | device_name_arch_map = { |
178 | 178 | # <Device name> : Set of architectures types (and aliases) |
179 | 179 | # DG1 |
180 | | - "gpu-intel-dg1" : {"intel_gpu_dg1"}, |
| 180 | + "gpu-intel-dg1": {"intel_gpu_dg1"}, |
181 | 181 | # DG2 |
182 | | - "gpu-intel-dg2" : {"intel_gpu_acm_g12","intel_gpu_dg2_g12","intel_gpu_acm_g11","intel_gpu_dg2_g11","intel_gpu_acm_g10","intel_gpu_dg2_g10"}, |
| 182 | + "gpu-intel-dg2": { |
| 183 | + "intel_gpu_acm_g12", |
| 184 | + "intel_gpu_dg2_g12", |
| 185 | + "intel_gpu_acm_g11", |
| 186 | + "intel_gpu_dg2_g11", |
| 187 | + "intel_gpu_acm_g10", |
| 188 | + "intel_gpu_dg2_g10", |
| 189 | + }, |
183 | 190 | # Gen12 |
184 | | - "gpu-intel-gen12" : {"intel_gpu_tgllp","intel_gpu_tgl"}, |
| 191 | + "gpu-intel-gen12": {"intel_gpu_tgllp", "intel_gpu_tgl"}, |
185 | 192 | # Gen11 |
186 | | - "gpu-intel-gen11" : {"intel_gpu_icllp","intel_gpu_icl"}, |
| 193 | + "gpu-intel-gen11": {"intel_gpu_icllp", "intel_gpu_icl"}, |
187 | 194 | } |
188 | 195 |
|
| 196 | + |
189 | 197 | def get_device_name_from_arch(arch): |
190 | 198 | for device_name, arch_set in device_name_arch_map.items(): |
191 | 199 | if arch in arch_set: |
@@ -789,7 +797,11 @@ def open_check_file(file_name): |
789 | 797 | architecture_feature = set("arch-" + s for s in architectures) |
790 | 798 | # Add device name features like intel-gpu-gen12, intel-gpu-dg2 based on |
791 | 799 | # the architecture reported by sycl-ls. |
792 | | - device_names = set(get_device_name_from_arch(arch) for arch in architectures if get_device_name_from_arch(arch) is not None) |
| 800 | + device_names = set( |
| 801 | + get_device_name_from_arch(arch) |
| 802 | + for arch in architectures |
| 803 | + if get_device_name_from_arch(arch) is not None |
| 804 | + ) |
793 | 805 | features = set() |
794 | 806 | features.update(aspect_features) |
795 | 807 | features.update(sg_size_features) |
|
0 commit comments