RAII wrapper class around a cl_context.
Definition: context.hpp:26
cl_context device_context
The OpenCL context associated with the platform containing the respective devices.
Definition: context.hpp:77
context & operator=(context &&other)
Move-assignment-operator as context is a move-only type.
~context()
Release the context resources on destruction.
cl_platform_id platform
The OpenCL platform associated with this context.
Definition: context.hpp:79
context(cl_context device_context, cl_platform_id platform, std::vector< cl_device_id > devices)
Construct a new OpenCL context.
context(const context &)=delete
Delete copy-constructor to make context a move only type.
context & operator=(const context &)=delete
Delete copy-assignment-operator to make context a move only type.
context()=default
Empty default construct context.
std::vector< cl_device_id > devices
All devices associated with this context.
Definition: context.hpp:81
context(context &&other) noexcept
Move-constructor as context is a move-only type.