ITK  5.2.0
Insight Toolkit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
itk::GPUContextManager Class Reference

#include <itkGPUContextManager.h>

+ Inheritance diagram for itk::GPUContextManager:
+ Collaboration diagram for itk::GPUContextManager:

Public Member Functions

void DestroyInstance ()
 
cl_command_queue GetCommandQueue (int i)
 
cl_context GetCurrentContext ()
 
cl_device_id GetDeviceId (int i)
 
unsigned int GetNumberOfCommandQueues () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual Pointer CreateAnother () const
 
virtual void Delete ()
 
virtual const char * GetNameOfClass () const
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 
virtual void Register () const
 
virtual void SetReferenceCount (int)
 
virtual void UnRegister () const noexcept
 

Static Public Member Functions

static GPUContextManagerGetInstance ()
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Private Member Functions

 GPUContextManager ()
 
 ~GPUContextManager () override
 

Private Attributes

cl_command_queue * m_CommandQueue
 
cl_context m_Context
 
cl_device_id * m_Devices
 
cl_uint m_NumberOfDevices
 
cl_uint m_NumberOfPlatforms
 
cl_platform_id m_Platform
 

Static Private Attributes

static GPUContextManagerm_Instance
 

Additional Inherited Members

- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer< const Self >
 
using Pointer = SmartPointer< Self >
 
using Self = LightObject
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintSelf (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount
 

Detailed Description

Singleton class to store the GPU context.

Won-Ki to write more documentation here...

Definition at line 34 of file itkGPUContextManager.h.

Constructor & Destructor Documentation

◆ GPUContextManager()

itk::GPUContextManager::GPUContextManager ( )
private

◆ ~GPUContextManager()

itk::GPUContextManager::~GPUContextManager ( )
overrideprivate

Member Function Documentation

◆ DestroyInstance()

void itk::GPUContextManager::DestroyInstance ( )

◆ GetCommandQueue()

cl_command_queue itk::GPUContextManager::GetCommandQueue ( int  i)

◆ GetCurrentContext()

cl_context itk::GPUContextManager::GetCurrentContext ( )
inline

Definition at line 53 of file itkGPUContextManager.h.

References m_Context.

◆ GetDeviceId()

cl_device_id itk::GPUContextManager::GetDeviceId ( int  i)

◆ GetInstance()

static GPUContextManager* itk::GPUContextManager::GetInstance ( )
static

◆ GetNumberOfCommandQueues()

unsigned int itk::GPUContextManager::GetNumberOfCommandQueues ( ) const
inline

Definition at line 47 of file itkGPUContextManager.h.

References m_NumberOfDevices.

Member Data Documentation

◆ m_CommandQueue

cl_command_queue* itk::GPUContextManager::m_CommandQueue
private

Definition at line 68 of file itkGPUContextManager.h.

◆ m_Context

cl_context itk::GPUContextManager::m_Context
private

Definition at line 66 of file itkGPUContextManager.h.

Referenced by GetCurrentContext().

◆ m_Devices

cl_device_id* itk::GPUContextManager::m_Devices
private

Definition at line 67 of file itkGPUContextManager.h.

◆ m_Instance

GPUContextManager* itk::GPUContextManager::m_Instance
staticprivate

Definition at line 72 of file itkGPUContextManager.h.

◆ m_NumberOfDevices

cl_uint itk::GPUContextManager::m_NumberOfDevices
private

Definition at line 70 of file itkGPUContextManager.h.

Referenced by GetNumberOfCommandQueues().

◆ m_NumberOfPlatforms

cl_uint itk::GPUContextManager::m_NumberOfPlatforms
private

Definition at line 70 of file itkGPUContextManager.h.

◆ m_Platform

cl_platform_id itk::GPUContextManager::m_Platform
private

Definition at line 65 of file itkGPUContextManager.h.


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