HPXCL
 All Classes Functions
Public Member Functions
hpx::opencl::kernel Class Reference

An OpenCL kernel. More...

#include <kernel.hpp>

List of all members.

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

dimensions.

Parameters:
sizeThe work dimensions on which the kernel should get executed on.
Returns:
An event that triggers upon completion.
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

Detailed Description

An OpenCL kernel.

Every kernel belongs to one device.

Examples:
hello_world.cpp.

Member Function Documentation

void hpx::opencl::kernel::set_arg ( cl_uint  arg_index,
const hpx::opencl::buffer arg 
) const

Sets a kernel argument.

Parameters:
arg_indexThe argument index to which the buffer will be connected.
argThe buffer that will be connected.
Returns:
A future that will trigger upon completion.
Examples:
hello_world.cpp.
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

Parameters:
arg_indexThe argument index to which the buffer will be connected.
argThe buffer that will be connected.
Returns:
A future that will trigger upon completion.

The documentation for this class was generated from the following file:
 All Classes Functions