summaryrefslogtreecommitdiffhomepage
path: root/example/simple_allocator_op/example.cc
blob: 433da229348d962ef0e7483bf9dd5352364ff0e2 (plain)
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;
}