PLSSVM - Parallel Least Squares Support Vector Machine
2.0.0
A Least Squares Support Vector Machine implementation using different backends.
|
RAII wrapper class around a cl_kernel. More...
#include <kernel.hpp>
Public Member Functions | |
kernel ()=default | |
Default construct empty kernel. | |
kernel (cl_kernel compute_kernel) noexcept | |
Construct a new wrapper around the provided compute_kernel . More... | |
kernel (const kernel &)=delete | |
Delete copy-constructor to make kernel a move only type. | |
kernel (kernel &&other) noexcept | |
Move-constructor as kernel is a move-only type. More... | |
kernel & | operator= (const kernel &)=delete |
Delete copy-assignment-operator to make kernel a move only type. | |
kernel & | operator= (kernel &&other) noexcept |
Move-assignment-operator as kernel is a move-only type. More... | |
~kernel () | |
Release the cl_kernel resources on destruction. | |
operator cl_kernel & () noexcept | |
Implicitly convert a kernel wrapper to an OpenCL cl_kernel. More... | |
operator const cl_kernel & () const noexcept | |
Implicitly convert a kernel wrapper to an OpenCL cl_kernel. More... | |
Public Attributes | |
cl_kernel | compute_kernel |
The wrapped OpenCL cl_kernel. | |
RAII wrapper class around a cl_kernel.
|
explicitnoexcept |
Construct a new wrapper around the provided compute_kernel
.
[in] | compute_kernel | the cl_kernel to wrap |
|
noexcept |
Move-constructor as kernel is a move-only type.
[in,out] | other | the kernel to move the resources from |
Move-assignment-operator as kernel is a move-only type.
[in,out] | other | the kernel to move the resources from |
*this
|
inlinenoexcept |
Implicitly convert a kernel wrapper to an OpenCL cl_kernel.
[[nodiscard]]
)
|
inlinenoexcept |
Implicitly convert a kernel wrapper to an OpenCL cl_kernel.
[[nodiscard]]
)