boost::compute::svm_alloc — Allocates a shared virtual memory (SVM) buffer.
// In header: <boost/compute/svm.hpp> template<typename T> svm_ptr< T > svm_alloc(const context & context, size_t size, cl_svm_mem_flags flags = CL_MEM_READ_WRITE, unsigned int alignment = 0);
Warning | |
---|---|
This method is only available if the OpenCL version is 2.0 or later. |
See the documentation for clSVMAlloc() for more information.
See Also:
svm_free()