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.
Definition at line 39 of file context.hpp.
|
inline |
Definition at line 42 of file context.hpp.
|
inlineexplicit |
Definition at line 52 of file context.hpp.
|
inline |
Definition at line 76 of file context.hpp.