ViennaCL - The Vienna Computing Library
1.5.0
|
Represents a generic 'context' similar to an OpenCL context, but is backend-agnostic and thus also suitable for CUDA and OpenMP. More...
#include <context.hpp>
Public Member Functions | |
context () | |
context (viennacl::memory_types mtype) | |
viennacl::memory_types | memory_type () const |
Represents a generic 'context' similar to an OpenCL context, but is backend-agnostic and thus also suitable for CUDA and OpenMP.
Context objects are used to distinguish between different memory domains. One context may refer to an OpenCL device, another context may refer to a CUDA device, and a third context to main RAM. Thus, operations are only defined on objects residing on the same context.
context | ( | ) | [inline] |
context | ( | viennacl::memory_types | mtype | ) | [inline, explicit] |
viennacl::memory_types memory_type | ( | ) | const [inline] |