FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Public Member Functions | List of all members
fast::OpenCLDevice Class Reference

#include <ExecutionDevice.hpp>

+ Inheritance diagram for fast::OpenCLDevice:
+ Collaboration diagram for fast::OpenCLDevice:

Public Member Functions

cl::CommandQueue getCommandQueue ()
 
cl::Device getDevice ()
 
int createProgramFromSource (std::string filename, std::string buildOptions="", bool caching=true)
 
int createProgramFromSource (std::vector< std::string > filenames, std::string buildOptions="")
 
int createProgramFromString (std::string code, std::string buildOptions="")
 
int createProgramFromSourceWithName (std::string programName, std::string filename, std::string buildOptions="")
 
int createProgramFromSourceWithName (std::string programName, std::vector< std::string > filenames, std::string buildOptions="")
 
int createProgramFromStringWithName (std::string programName, std::string code, std::string buildOptions="")
 
cl::Program getProgram (unsigned int i)
 
cl::Program getProgram (std::string name)
 
bool hasProgram (std::string name)
 
bool isImageFormatSupported (cl_channel_order order, cl_channel_type type, cl_mem_object_type imageType)
 
bool isOpenGLInteropSupported ()
 
cl::CommandQueue getQueue (unsigned int i)
 
cl::Device getDevice (unsigned int i)
 
cl::Device getDevice (cl::CommandQueue queue)
 
cl::Context getContext ()
 
cl::Platform getPlatform ()
 
 OpenCLDevice (std::vector< cl::Device > devices, unsigned long *glContext=NULL)
 
unsigned long * getGLContext ()
 
std::string getName ()
 
bool isWritingTo3DTexturesSupported ()
 
RuntimeMeasurementsManager::pointer getRunTimeMeasurementManager ()
 
 ~OpenCLDevice ()
 
- Public Member Functions inherited from fast::ExecutionDevice
bool isHost ()
 
virtual ~ExecutionDevice ()
 
- Public Member Functions inherited from fast::Object
 Object ()
 
virtual ~Object ()
 
ReportergetReporter ()
 

Additional Inherited Members

- Public Types inherited from fast::ExecutionDevice
typedef std::shared_ptr< ExecutionDevicepointer
 
- Public Types inherited from fast::Object
typedef std::shared_ptr< Objectpointer
 
- Static Public Member Functions inherited from fast::ExecutionDevice
static std::string getStaticNameOfClass ()
 
- Static Public Member Functions inherited from fast::Object
static std::string getStaticNameOfClass ()
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 
- Protected Attributes inherited from fast::ExecutionDevice
bool mIsHost
 
std::weak_ptr< ExecutionDevicemPtr
 
- Protected Attributes inherited from fast::Object
std::weak_ptr< ObjectmPtr
 

Constructor & Destructor Documentation

◆ OpenCLDevice()

fast::OpenCLDevice::OpenCLDevice ( std::vector< cl::Device >  devices,
unsigned long *  glContext = NULL 
)

◆ ~OpenCLDevice()

fast::OpenCLDevice::~OpenCLDevice ( )

Member Function Documentation

◆ createProgramFromSource() [1/2]

int fast::OpenCLDevice::createProgramFromSource ( std::string  filename,
std::string  buildOptions = "",
bool  caching = true 
)

◆ createProgramFromSource() [2/2]

int fast::OpenCLDevice::createProgramFromSource ( std::vector< std::string >  filenames,
std::string  buildOptions = "" 
)

◆ createProgramFromSourceWithName() [1/2]

int fast::OpenCLDevice::createProgramFromSourceWithName ( std::string  programName,
std::string  filename,
std::string  buildOptions = "" 
)

◆ createProgramFromSourceWithName() [2/2]

int fast::OpenCLDevice::createProgramFromSourceWithName ( std::string  programName,
std::vector< std::string >  filenames,
std::string  buildOptions = "" 
)

◆ createProgramFromString()

int fast::OpenCLDevice::createProgramFromString ( std::string  code,
std::string  buildOptions = "" 
)

◆ createProgramFromStringWithName()

int fast::OpenCLDevice::createProgramFromStringWithName ( std::string  programName,
std::string  code,
std::string  buildOptions = "" 
)

◆ getCommandQueue()

cl::CommandQueue fast::OpenCLDevice::getCommandQueue ( )

◆ getContext()

cl::Context fast::OpenCLDevice::getContext ( )

◆ getDevice() [1/3]

cl::Device fast::OpenCLDevice::getDevice ( )

◆ getDevice() [2/3]

cl::Device fast::OpenCLDevice::getDevice ( cl::CommandQueue  queue)

◆ getDevice() [3/3]

cl::Device fast::OpenCLDevice::getDevice ( unsigned int  i)

◆ getGLContext()

unsigned long* fast::OpenCLDevice::getGLContext ( )
inline

◆ getName()

std::string fast::OpenCLDevice::getName ( )
inline

◆ getPlatform()

cl::Platform fast::OpenCLDevice::getPlatform ( )

◆ getProgram() [1/2]

cl::Program fast::OpenCLDevice::getProgram ( std::string  name)

◆ getProgram() [2/2]

cl::Program fast::OpenCLDevice::getProgram ( unsigned int  i)

◆ getQueue()

cl::CommandQueue fast::OpenCLDevice::getQueue ( unsigned int  i)

◆ getRunTimeMeasurementManager()

RuntimeMeasurementsManager::pointer fast::OpenCLDevice::getRunTimeMeasurementManager ( )

◆ hasProgram()

bool fast::OpenCLDevice::hasProgram ( std::string  name)

◆ isImageFormatSupported()

bool fast::OpenCLDevice::isImageFormatSupported ( cl_channel_order  order,
cl_channel_type  type,
cl_mem_object_type  imageType 
)

◆ isOpenGLInteropSupported()

bool fast::OpenCLDevice::isOpenGLInteropSupported ( )

◆ isWritingTo3DTexturesSupported()

bool fast::OpenCLDevice::isWritingTo3DTexturesSupported ( )

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