From 0424f52c142e64cfadaa37288feee775fafc2bf0 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Sun, 14 Dec 2025 13:12:14 +0100 Subject: feat! core: new ocl::allocator API (breaking changes) and example. Signed-off-by: Amlal El Mahrouss --- examples/simple_allocator_op/example.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 examples/simple_allocator_op/example.cc (limited to 'examples/simple_allocator_op/example.cc') diff --git a/examples/simple_allocator_op/example.cc b/examples/simple_allocator_op/example.cc new file mode 100644 index 0000000..83be033 --- /dev/null +++ b/examples/simple_allocator_op/example.cc @@ -0,0 +1,14 @@ +#include +#include + +/// @brief Basic Send test +int main() +{ + ocl::allocator int_alloc; + auto foo = int_alloc.construct_array<1>(); + + *foo = 67; + ocl::io::print(*foo); + + return EXIT_SUCCESS; +} -- cgit v1.2.3