Skip to content

Commit e793a9c

Browse files
committed
[SYCL][E2E] Fix Basic/kernel_info_attr.cpp test
1 parent 13951ed commit e793a9c

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

sycl/test-e2e/Basic/kernel_info_attr.cpp

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
// RUN: %{build} -o %t.out
22
// RUN: %{run} %t.out
33
//
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
56
// UNSUPPORTED: level_zero
67
//
7-
// Consistently fails with opencl gpu, enable when fixed.
8-
// XFAIL: opencl && gpu
9-
// XFAIL-TRACKER: GSD-8971
10-
118
//==--- kernel_info_attr.cpp - SYCL info::kernel::attributes test ---==//
129
//
1310
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
@@ -37,7 +34,17 @@ int main() {
3734
});
3835

3936
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+
}
4148
const std::string krnAttrExt =
4249
syclex::get_kernel_info<SingleTask, info::kernel::attributes>(ctx);
4350
assert(krnAttr == krnAttrExt);

0 commit comments

Comments
 (0)