| Home | Libraries | People | FAQ | More

## Function template svm_alloc

boost::compute::svm_alloc — Allocates a shared virtual memory (SVM) buffer.

## Synopsis

    // 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);

## Description

| Warning
This method is only available if the OpenCL version is 2.0 or later.

See the documentation for