This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
SYCL/Basic/free_function_queries Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
- // FIXME: Investigate OS-agnostic failures
2
- // REQUIRES: TEMPORARY_DISABLED
3
1
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
4
2
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5
3
// RUN: %CPU_RUN_PLACEHOLDER %t.out
@@ -48,7 +46,8 @@ int main() {
48
46
49
47
auto that_item = sycl::ext::oneapi::experimental::this_item<1 >();
50
48
results_acc[1 ] = that_item.get_id () == i;
51
- results_acc[2 ] = that_item.get_range () == sycl::range<1 >(n);
49
+ results_acc[2 ] =
50
+ that_item.get_range () == ((sycl::range<1 >(n) + (31 )) & ~(31 ));
52
51
acc[i]++;
53
52
});
54
53
});
@@ -63,7 +62,7 @@ int main() {
63
62
}
64
63
65
64
{
66
- constexpr int checks_number{2 };
65
+ constexpr int checks_number{3 };
67
66
int results[checks_number]{};
68
67
{
69
68
sycl::buffer<int > buf (data, sycl::range<1 >(n));
@@ -82,7 +81,9 @@ int main() {
82
81
auto that_id = sycl::ext::oneapi::experimental::this_id<1 >();
83
82
results_acc[0 ] = i.get_id () == that_id;
84
83
auto that_item = sycl::ext::oneapi::experimental::this_item<1 >();
85
- results_acc[1 ] = i == that_item;
84
+ results_acc[1 ] = i == that_item.get_id ();
85
+ results_acc[2 ] =
86
+ that_item.get_range () == ((sycl::range<1 >(n) + (31 )) & ~(31 ));
86
87
acc[i]++;
87
88
});
88
89
});
You can’t perform that action at this time.
0 commit comments