|
1 | 1 | // REQUIRES: accelerator
|
2 | 2 | // https://github.com/intel/llvm/issues/14308
|
3 |
| -// UNSUPPORTED: accelerator |
| 3 | +// Temporarily re-enabled for testing purposes. |
| 4 | +// If you are facing issues with this test, please leave a comment in: |
| 5 | +// https://github.com/intel/llvm/pull/14627 |
4 | 6 | // RUN: %{build} -o %t.out
|
5 | 7 | // RUN: %{run} %t.out
|
6 | 8 |
|
@@ -60,6 +62,9 @@ template <int TestNumber, int KernelNumber = 0> class reader;
|
60 | 62 | // Test for simple non-blocking pipes
|
61 | 63 | template <typename PipeName, int TestNumber>
|
62 | 64 | int test_simple_nb_pipe(sycl::queue Queue) {
|
| 65 | + // TODO Remove when #14308 is closed |
| 66 | + std::cerr << "DEBUG: executing test " << TestNumber << std::endl; |
| 67 | + |
63 | 68 | int data[] = {0};
|
64 | 69 |
|
65 | 70 | using Pipe = sycl::ext::intel::pipe<PipeName, int>;
|
@@ -101,6 +106,9 @@ int test_simple_nb_pipe(sycl::queue Queue) {
|
101 | 106 |
|
102 | 107 | // Test for multiple non-blocking pipes
|
103 | 108 | template <int TestNumber> int test_multiple_nb_pipe(sycl::queue Queue) {
|
| 109 | + // TODO Remove when #14308 is closed |
| 110 | + std::cerr << "DEBUG: executing test " << TestNumber << std::endl; |
| 111 | + |
104 | 112 | int data[] = {0};
|
105 | 113 |
|
106 | 114 | Queue.submit([&](sycl::handler &cgh) {
|
@@ -152,6 +160,9 @@ template <int TestNumber> int test_multiple_nb_pipe(sycl::queue Queue) {
|
152 | 160 |
|
153 | 161 | // Test for array passing through a non-blocking pipe
|
154 | 162 | template <int TestNumber> int test_array_th_nb_pipe(sycl::queue Queue) {
|
| 163 | + // TODO Remove when #14308 is closed |
| 164 | + std::cerr << "DEBUG: executing test " << TestNumber << std::endl; |
| 165 | + |
155 | 166 | int data[N] = {0};
|
156 | 167 | using AnotherNbPipe = sycl::ext::intel::pipe<class another_nb_pipe, int>;
|
157 | 168 | static_assert(std::is_same_v<typename AnotherNbPipe::value_type, int>);
|
@@ -195,6 +206,9 @@ template <int TestNumber> int test_array_th_nb_pipe(sycl::queue Queue) {
|
195 | 206 | // Test for simple blocking pipes
|
196 | 207 | template <typename PipeName, int TestNumber>
|
197 | 208 | int test_simple_bl_pipe(sycl::queue Queue) {
|
| 209 | + // TODO Remove when #14308 is closed |
| 210 | + std::cerr << "DEBUG: executing test " << TestNumber << std::endl; |
| 211 | + |
198 | 212 | int data[] = {0};
|
199 | 213 |
|
200 | 214 | using Pipe = sycl::ext::intel::pipe<PipeName, int>;
|
@@ -230,6 +244,9 @@ int test_simple_bl_pipe(sycl::queue Queue) {
|
230 | 244 |
|
231 | 245 | // Test for multiple blocking pipes
|
232 | 246 | template <int TestNumber> int test_multiple_bl_pipe(sycl::queue Queue) {
|
| 247 | + // TODO Remove when #14308 is closed |
| 248 | + std::cerr << "DEBUG: executing test " << TestNumber << std::endl; |
| 249 | + |
233 | 250 | int data[] = {0};
|
234 | 251 |
|
235 | 252 | Queue.submit([&](sycl::handler &cgh) {
|
@@ -266,6 +283,9 @@ template <int TestNumber> int test_multiple_bl_pipe(sycl::queue Queue) {
|
266 | 283 |
|
267 | 284 | // Test for array passing through a blocking pipe
|
268 | 285 | template <int TestNumber> int test_array_th_bl_pipe(sycl::queue Queue) {
|
| 286 | + // TODO Remove when #14308 is closed |
| 287 | + std::cerr << "DEBUG: executing test " << TestNumber << std::endl; |
| 288 | + |
269 | 289 | int data[N] = {0};
|
270 | 290 | using AnotherBlPipe = sycl::ext::intel::pipe<class another_bl_pipe, int>;
|
271 | 291 | static_assert(std::is_same_v<typename AnotherBlPipe::value_type, int>);
|
@@ -328,5 +348,7 @@ int main() {
|
328 | 348 | Result &= test_array_th_nb_pipe</*test number*/ 11>(Queue);
|
329 | 349 | Result &= test_array_th_bl_pipe</*test number*/ 12>(Queue);
|
330 | 350 |
|
| 351 | + // TODO Remove when #14308 is closed |
| 352 | + std::cerr << "DEBUG: Finished with result " << Result << std::endl; |
331 | 353 | return Result;
|
332 | 354 | }
|
0 commit comments