[llvm] [libsycl] Add USM alloc & release funcs (PR #181120)

Kseniya Tikhomirova via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 12 04:56:16 PST 2026


================
@@ -0,0 +1,124 @@
+// REQUIRES: any-device
+// RUN: %clangxx %sycl_options %s -o %t.out
+// RUN: %t.out
+
+#include <sycl/sycl.hpp>
+
+#include <cstddef>
+#include <iostream>
+#include <tuple>
+
+using namespace sycl;
+
+constexpr size_t Align = 256;
+
+struct alignas(Align) Aligned {
+  int x;
+};
+
+int main() {
+  queue q;
----------------
KseniyaTikhomirova wrote:

this test is almost full copy of intel/llvm sycl/test-e2e/usm/alloc_functions.cpp but with aligned allocations excluded.

https://github.com/llvm/llvm-project/pull/181120


More information about the llvm-commits mailing list