Skip to content

Commit 9c3582f

Browse files
mmoadelibb-sycl
authored andcommitted
Test the case where range is over allowed limit. (intel#1500)
Provides a test for intel/llvm#7968
1 parent a0e7e82 commit 9c3582f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

SYCL/Basic/range_large_y_dim.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
2+
// RUN: %CPU_RUN_PLACEHOLDER %t.out
3+
// RUN: %GPU_RUN_PLACEHOLDER %t.out
4+
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5+
6+
#include <sycl/sycl.hpp>
7+
8+
int main() {
9+
sycl::queue q;
10+
size_t N = 65536;
11+
size_t M = 1;
12+
13+
q.parallel_for(sycl::range<2>{N, M}, [=](sycl::id<2> idx) {});
14+
}

0 commit comments

Comments
 (0)