We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 219b4b4 commit 0176788Copy full SHA for 0176788
SYCL/Basic/zero_size_range.cpp
@@ -0,0 +1,19 @@
1
+// REQUIRES: cuda || hip
2
+// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
3
+// RUN: %GPU_RUN_PLACEHOLDER %t.out
4
+//==--------------- range_zero_size.cpp - SYCL range test ------------------==//
5
+//
6
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
7
+// See https://llvm.org/LICENSE.txt for license information.
8
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
9
10
+//===----------------------------------------------------------------------===//
11
+
12
+#include <sycl/sycl.hpp>
13
+using namespace sycl;
14
15
+int main() {
16
+ queue q;
17
+ q.submit(
18
+ [&](handler &cgh) { cgh.parallel_for(range<1>(0), [=](id<1> i) {}); });
19
+}
0 commit comments