An OpenCL program consisting of one or multiple kernels. More...
#include <program.hpp>
Public Member Functions | |
program (hpx::shared_future< hpx::naming::id_type > const &gid, hpx::naming::id_type device_gid_) | |
hpx::lcos::future< void > | build_async () const |
Builds the program, non-blocking. | |
hpx::lcos::future< void > | build_async (std::string build_options) const |
Builds the program, non-blocking. | |
void | build () const |
Builds the program, blocking. | |
void | build (std::string build_options) const |
Builds the program, blocking. | |
hpx::lcos::future < hpx::serialization::serialize_buffer < char > > | get_binary () const |
Retrieves the binary of a built program. It can be used to create programs with device::create_program_with_binary(). | |
hpx::opencl::kernel | create_kernel (std::string kernel_name) const |
Creates a kernel. | |
Friends | |
class | hpx::serialization::access |
An OpenCL program consisting of one or multiple kernels.
Every program belongs to one device.
void hpx::opencl::program::build | ( | ) | const |
Builds the program, blocking.
void hpx::opencl::program::build | ( | std::string | build_options | ) | const |
Builds the program, blocking.
build_options | A string with specific build options. Look at the official OpenCL Reference for further information. |
hpx::lcos::future<void> hpx::opencl::program::build_async | ( | ) | const |
Builds the program, non-blocking.
hpx::lcos::future<void> hpx::opencl::program::build_async | ( | std::string | build_options | ) | const |
Builds the program, non-blocking.
build_options | A string with specific build options. Look at the official OpenCL Reference for further information. |
hpx::opencl::kernel hpx::opencl::program::create_kernel | ( | std::string | kernel_name | ) | const |
Creates a kernel.
The kernel with the name kernel_name has to be defined and implemented in the program source code.
kernel_name | The name of the kernel to be created |
hpx::lcos::future<hpx::serialization::serialize_buffer<char> > hpx::opencl::program::get_binary | ( | ) | const |
Retrieves the binary of a built program. It can be used to create programs with device::create_program_with_binary().