|
1 | 1 | // RUN: %{build} -o %t.out |
2 | 2 | // RUN: %{run} %t.out |
3 | 3 | // |
4 | | -// Fail is flaky for level_zero, enable when fixed. |
| 4 | +// Fail is flaky for level_zero caused by issue in UR Level Zero adapter: |
| 5 | +// URLZA-419 |
5 | 6 | // UNSUPPORTED: level_zero |
6 | 7 | // |
7 | | -// Consistently fails with opencl gpu, enable when fixed. |
8 | | -// XFAIL: opencl && gpu |
9 | | -// XFAIL-TRACKER: GSD-8971 |
10 | | - |
11 | 8 | //==--- kernel_info_attr.cpp - SYCL info::kernel::attributes test ---==// |
12 | 9 | // |
13 | 10 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
@@ -37,7 +34,17 @@ int main() { |
37 | 34 | }); |
38 | 35 |
|
39 | 36 | const std::string krnAttr = krn.get_info<info::kernel::attributes>(); |
40 | | - assert(krnAttr.empty()); |
| 37 | + if (q.get_device().get_platform().get_info<info::platform::vendor>() == |
| 38 | + "Intel(R) Corporation" && |
| 39 | + q.get_device().get_info<info::device::device_type>() == |
| 40 | + info::device_type::gpu) { |
| 41 | + // Older intel drivers don't attach any default attributes and newer ones |
| 42 | + // force walk order to X/Y/Z using special attribute. |
| 43 | + assert(krnAttr.empty() || |
| 44 | + krnAttr == "intel_reqd_workgroup_walk_order(0,1,2)"); |
| 45 | + } else { |
| 46 | + assert(krnAttr.empty()); |
| 47 | + } |
41 | 48 | const std::string krnAttrExt = |
42 | 49 | syclex::get_kernel_info<SingleTask, info::kernel::attributes>(ctx); |
43 | 50 | assert(krnAttr == krnAttrExt); |
|
0 commit comments