An OpenCL kernel. More...
#include <kernel.hpp>
Public Member Functions | |||
kernel (hpx::shared_future< hpx::naming::id_type > const &gid, hpx::naming::id_type device_gid_) | |||
hpx::lcos::future< void > | set_arg_async (cl_uint arg_index, const hpx::opencl::buffer &arg) const | ||
Sets a kernel argument. | |||
void | set_arg (cl_uint arg_index, const hpx::opencl::buffer &arg) const | ||
Sets a kernel argument. | |||
Starts execution of a kernel, using work_size as work | |||
| |||
class | hpx::serialization::access | ||
template<std::size_t DIM, typename... Deps> | |||
hpx::lcos::future< void > | enqueue (hpx::opencl::work_size< DIM > size, Deps &&...dependencies) const | ||
hpx::lcos::future< void > | enqueue_impl (std::vector< std::size_t > &&size_vec, hpx::opencl::util::resolved_events &&deps) const |
void hpx::opencl::kernel::set_arg | ( | cl_uint | arg_index, |
const hpx::opencl::buffer & | arg | ||
) | const |
Sets a kernel argument.
arg_index | The argument index to which the buffer will be connected. |
arg | The buffer that will be connected. |
hpx::lcos::future<void> hpx::opencl::kernel::set_arg_async | ( | cl_uint | arg_index, |
const hpx::opencl::buffer & | arg | ||
) | const |
Sets a kernel argument.
This is the non-blocking version of set_arg
arg_index | The argument index to which the buffer will be connected. |
arg | The buffer that will be connected. |