Skip to content

Commit 1677043

Browse files
authored
[SYCL][ESIMD][E2E] Fix DG2 check in lit.local.cfg (#16592)
This only worked when `gpu-intel-dg2` was passed explicitly at the command line. Now we automatically add it based on the device architecture, but it's per-device, so check for it in any device like we do for PVC. Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
1 parent d8327d2 commit 1677043

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test-e2e/ESIMD/lit.local.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ config.required_features += ['gpu']
88
# so there's no difference in coverage.
99
# We should investigate why OCL fails separately.
1010

11-
# Check if any device has arch-intel_gpu_pvc
1211
has_arch_gpu_intel_pvc = any('arch-intel_gpu_pvc' in T for T in config.sycl_dev_features.values())
12+
has_gpu_intel_dg2 = any('gpu-intel-dg2' in T for T in config.sycl_dev_features.values())
1313

14-
if 'gpu-intel-dg2' in config.available_features or has_arch_gpu_intel_pvc:
14+
if has_gpu_intel_dg2 or has_arch_gpu_intel_pvc:
1515
config.required_features += ['level_zero']
1616

1717
# TODO: Remove this once the warnings are resolved

0 commit comments

Comments
 (0)