Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkOclResourceService_h
14 #define mitkOclResourceService_h
51 virtual void InsertProgram(cl_program program, std::string
string,
bool flag) = 0;
57 virtual cl_program
GetProgram(
const std::string& name) = 0;
72 virtual unsigned int GetMaximumImageSize(
unsigned int dimension, cl_mem_object_type image) = 0;
virtual ~OclResourceService()=0
virtual cl_context GetContext() const =0
Returns a valid OpenCL Context (if applicable) or nullptr if none present.
virtual void RemoveProgram(const std::string &name)=0
Remove given program from storage.
virtual unsigned int GetMaximumImageSize(unsigned int dimension, cl_mem_object_type image)=0
Get the maximum size of an image.
virtual cl_program GetProgram(const std::string &name)=0
Get the cl_program by name.
virtual void InsertProgram(cl_program program, std::string string, bool flag)=0
Insert program into the internal program storage.
virtual bool GetIsFormatSupported(cl_image_format *format)=0
Checks if an OpenCL image format passed in is supported on current device.
virtual void InvalidateStorage()=0
Remove all invalid (=do not compile) programs from the internal storage.
virtual cl_command_queue GetCommandQueue() const =0
Returns a valid cl_command_queue related to the (one) OpenCL context.
virtual void PrintContextInfo() const =0
Puts the OpenCL Context info in std::cout.
Declaration of the OpenCL Resources micro-service.
virtual cl_device_id GetCurrentDevice() const =0
Returns the identifier of an OpenCL device related to the current context.
#define MITK_DECLARE_SERVICE_INTERFACE(IFace, IId)