ViennaCL - The Vienna Computing Library  1.5.1
Public Member Functions
context Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

context ( )
inline
context ( viennacl::memory_types  mtype)
inlineexplicit

Member Function Documentation

viennacl::memory_types memory_type ( ) const
inline

The documentation for this class was generated from the following file: