Public Types | Static Public Member Functions | Private Member Functions | Private Attributes

cmtk::DeviceContextCL Class Reference
[cmtkGPU library]

Device context wrapper for OpenCL. More...

#include <cmtkDeviceContextCL.h>

Inheritance diagram for cmtk::DeviceContextCL:
Inheritance graph
[legend]
Collaboration diagram for cmtk::DeviceContextCL:
Collaboration graph
[legend]

List of all members.

Public Types

typedef DeviceContextCL Self
 This class.

Static Public Member Functions

static SelfGetGlobalContext ()
 Get the global context instance.

Private Member Functions

 DeviceContextCL ()
 Constructor.
 ~DeviceContextCL ()
 Destructor.

Private Attributes

cl_context m_Context
 The OpenCL context handle.
std::vector< cl_device_id > m_DeviceIDs
 Vector of device infos.

Detailed Description

Device context wrapper for OpenCL.

Warning:
This is a skeleton only and not currently implemented. The implemented parts do not work because nVidia's OpenCL library is pissy about function call parameters. Make sure this is not copied.

Definition at line 53 of file cmtkDeviceContextCL.h.


Member Typedef Documentation

This class.

Definition at line 59 of file cmtkDeviceContextCL.h.


Constructor & Destructor Documentation

cmtk::DeviceContextCL::DeviceContextCL (  ) [private]

Constructor.

Definition at line 35 of file cmtkDeviceContextCL.cxx.

References m_Context, m_DeviceIDs, and NULL.

cmtk::DeviceContextCL::~DeviceContextCL (  ) [private]

Destructor.

Definition at line 61 of file cmtkDeviceContextCL.cxx.


Member Data Documentation

cl_context cmtk::DeviceContextCL::m_Context [private]

The OpenCL context handle.

Definition at line 66 of file cmtkDeviceContextCL.h.

Referenced by DeviceContextCL().

std::vector<cl_device_id> cmtk::DeviceContextCL::m_DeviceIDs [private]

Vector of device infos.

Definition at line 69 of file cmtkDeviceContextCL.h.

Referenced by DeviceContextCL().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines