17 #ifndef __mitkOclResourceService_h
18 #define __mitkOclResourceService_h
55 virtual void InsertProgram(cl_program program, std::string
string,
bool flag) = 0;
61 virtual cl_program
GetProgram(
const std::string& name) = 0;
83 #endif // __mitkOclResourceService_h
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 unsigned int GetMaximumImageSize(unsigned int, cl_mem_object_type)=0
Get the maximum size of an image.
virtual cl_program GetProgram(const std::string &name)=0
Get the cl_program by name.
virtual bool GetIsFormatSupported(cl_image_format *format)=0
Checks if an OpenCL image format passed in is supported on current device.
virtual void InsertProgram(cl_program program, std::string string, bool flag)=0
Insert program into the internal program storage.
virtual void PrintContextInfo() const =0
Puts the OpenCL Context info in std::cout.
virtual void RemoveProgram(const std::string &name)=0
Remove given program from storage.
virtual ~OclResourceService()=0
virtual cl_context GetContext() const =0
Returns a valid OpenCL Context (if applicable) or NULL if none present.
MITK_DECLARE_SERVICE_INTERFACE(mitk::ISimulationService,"org.mitk.ISimulationService")
virtual cl_device_id GetCurrentDevice() const =0
Returns the identifier of an OpenCL device related to the current context.
Declaration of the OpenCL Resources micro-service.