/workspaces/astro/sol3-sdk/cpp/sol3/opencl/opencl_manager.h Source File
|
Space-ng SDK
|
opencl_manager.h
Go to the documentation of this file.
Small helper for read/write access to a value guarded by a shared mutex.
Definition: thread_safe_value.h:13
Definition: opencl_manager.h:20
cl::Kernel createKernel(cpp::fs::path const &source_cl_file, std::string const &kernel_name, std::string const &compiler_opts="")
cl::Context const & context() const
Get OpenCL context.
Definition: opencl_manager.h:26
cl::Program getOrCompileProgramFile(cpp::fs::path const &source_cl_file, std::string const &compiler_opts="")
cl::CommandQueue createCommandQueue() const
Definition: opencl_manager.h:35
cl::Device const & device() const
Get OpenCL device.
Definition: opencl_manager.h:29
std::vector< cl::Device > const & devices() const
Get list of all devices.
Definition: opencl_manager.h:32
cl::Buffer mapBufferToGpu(core::IBufferConst const &buffer)
cl::Buffer mapBufferToGpu(core::IBufferMutable &buffer)
static OpenClManager & instance()
Get singleton instance (thread-safe)
cl::Program getOrCompileProgramSource(std::string const &name, std::string const &source, std::string const &compiler_opts="")
Definition: opencl_manager.h:14
Definition: carrier_board_msg_spec.h:10
opencl::OpenClManager & openclMgr()
Convenience accessor for OpenCL manager singleton.
Definition: opencl_manager.h:115
Generated by