Skip to content

Commit bdb3967

Browse files
committed
[SYCL][E2E] do not update no-unsupported test
1 parent e3ff53a commit bdb3967

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

sycl/test-e2e/Experimental/free_functions/namespace.cpp

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
// The name mangling for free function kernels currently does not work with PTX.
66
// UNSUPPORTED: cuda
7+
// UNSUPPORTED-INTENDED: Not implemented yet for Nvidia/AMD backends.
78

89
#include <sycl/detail/core.hpp>
910
#include <sycl/ext/oneapi/free_function_queries.hpp>
@@ -26,13 +27,13 @@ namespace free_functions::tests {
2627
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((syclexp::nd_range_kernel<1>))
2728
void function_in_ns(float start, float *ptr) {
2829
size_t id = syclext::this_work_item::get_nd_item<1>().get_global_linear_id();
29-
ptr[id] = start + static_cast<float>(id + 1);
30+
ptr[id] = start + static_cast<float>(id);
3031
}
3132

3233
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((syclexp::nd_range_kernel<1>))
3334
void func(float start, float *ptr) {
3435
size_t id = syclext::this_work_item::get_nd_item<1>().get_global_linear_id();
35-
ptr[id] = start + static_cast<float>(id + 2);
36+
ptr[id] = start + static_cast<float>(id);
3637
}
3738
} // namespace free_functions::tests
3839

@@ -41,7 +42,7 @@ inline namespace V1 {
4142
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((syclexp::nd_range_kernel<1>))
4243
void function_in_inline_ns(float start, float *ptr) {
4344
size_t id = syclext::this_work_item::get_nd_item<1>().get_global_linear_id();
44-
ptr[id] = start + static_cast<float>(id + 2);
45+
ptr[id] = start + static_cast<float>(id);
4546
}
4647
} // namespace V1
4748
} // namespace free_functions::tests
@@ -50,7 +51,7 @@ namespace {
5051
SYCL_EXT_ONEAPI_FUNCTION_PROPERTY((syclexp::nd_range_kernel<1>))
5152
void function_in_anonymous_ns(float start, float *ptr) {
5253
size_t id = syclext::this_work_item::get_nd_item<1>().get_global_linear_id();
53-
ptr[id] = start + static_cast<float>(id + 3);
54+
ptr[id] = start + static_cast<float>(id);
5455
}
5556
} // namespace
5657

@@ -61,6 +62,12 @@ static void call_kernel_code(sycl::queue &q, sycl::kernel &kernel) {
6162
sycl::nd_range ndr{{NUM}, {WGSIZE}};
6263
cgh.parallel_for(ndr, kernel);
6364
}).wait();
65+
// Check the result
66+
for (size_t i = 0; i < NUM; ++i) {
67+
const float expected = 3.14f + static_cast<float>(i);
68+
assert(ptr[i] == expected &&
69+
"Kernel execution did not produce the expected result");
70+
}
6471
}
6572

6673
void test_function_without_ns(sycl::queue &q, sycl::context &ctxt) {

sycl/test/e2e_test_requirements/no-unsupported-without-info.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
// tests to match the required format and in that case you should just update
5555
// (i.e. reduce) the number and the list below.
5656
//
57-
// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 283
57+
// NUMBER-OF-UNSUPPORTED-WITHOUT-INFO: 282
5858
//
5959
// List of improperly UNSUPPORTED tests.
6060
// Remove the CHECK once the test has been properly UNSUPPORTED.
@@ -156,7 +156,6 @@
156156
// CHECK-NEXT: ESIMD/slm_alloc_many_kernels_many_funcs.cpp
157157
// CHECK-NEXT: ESIMD/slm_alloc_many_kernels_one_func.cpp
158158
// CHECK-NEXT: ESIMD/slm_init_no_inline.cpp
159-
// CHECK-NEXT: Experimental/free_functions/namespace.cpp
160159
// CHECK-NEXT: Graph/Explicit/buffer_copy_host2target.cpp
161160
// CHECK-NEXT: Graph/Explicit/buffer_copy_host2target_2d.cpp
162161
// CHECK-NEXT: Graph/Explicit/buffer_copy_host2target_offset.cpp

0 commit comments

Comments
 (0)