[llvm-branch-commits] [llvm] [libsycl] add single_task (PR #188797)
Mariya Podchishchaeva via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Mar 30 07:15:58 PDT 2026
================
@@ -0,0 +1,18 @@
+// REQUIRES: any-device
+// RUN: %clangxx -fsycl %s -o %t.out
+// RUN: %t.out
+
+#include <sycl/sycl.hpp>
+
+class Test;
+
+int main() {
+ sycl::queue q;
+ int *p = sycl::malloc_shared<int>(1, q);
+ *p = 0;
+ q.single_task<Test>([=]() { *p = 42; });
----------------
Fznamznon wrote:
I can also volunteer to implement these test suggestions after we merge this PR since they are FE-job oriented. Let me know if I should.
https://github.com/llvm/llvm-project/pull/188797
More information about the llvm-branch-commits
mailing list