Function template svm_free

| Home | Libraries | People | FAQ | More

## Function template svm_free

boost::compute::svm_free

## Synopsis

    // In header: <boost/compute/svm.hpp>

    template<typename T> void svm_free(const context & context, svm_ptr< T > ptr);

## Description

Deallocates a shared virtual memory (SVM) buffer.

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

See the documentation for clSVMFree() for more information.

See Also:

svm_alloc(), command_queue::enqueue_svm_free()