1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <ocl/print.hpp> #include <ocl/allocator_op.hpp> /// \brief Allocation of ints example. int main() { ocl::allocator<int> int_alloc; auto foo = int_alloc.construct_array<1>(); *foo = 67; ocl::io::print(*foo); return EXIT_SUCCESS; }