From d54c2033eaaad5b6f9340b7cbaf8b3b037fb3cbe Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Wed, 17 Dec 2025 14:53:59 +0100 Subject: chore: updated file structure. Signed-off-by: Amlal El Mahrouss --- example/simple_allocator_op/example.cc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 example/simple_allocator_op/example.cc (limited to 'example/simple_allocator_op/example.cc') diff --git a/example/simple_allocator_op/example.cc b/example/simple_allocator_op/example.cc new file mode 100644 index 0000000..83be033 --- /dev/null +++ b/example/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