JayBeams
0.1
Another project to have fun coding.
|
Wrappers for the OpenCL library. More...
Namespaces | |
defaults | |
detail | |
Classes | |
class | config |
Configure the OpenCL device / context options. More... | |
class | generic_reduce |
Implement a generic reducer for OpenCL. More... | |
class | microbenchmark_config |
The configuration shared by all OpenCL microbenchmarks. More... | |
class | reducer_concept |
The interface for reducers assumed by jb::opencl::generic_reducer. More... | |
Functions | |
boost::compute::kernel | build_simple_kernel (boost::compute::context context, boost::compute::device device, char const *code, char const *kernel_name) |
Build a simple program (one where everything is in a single string) and get a kernel from it. More... | |
boost::compute::kernel | build_simple_kernel (boost::compute::context context, boost::compute::device device, std::istream &code, char const *kernel_name) |
Build a simple program from an iostream and get a kernel from the result. More... | |
boost::compute::program | build_simple_program (boost::compute::context context, boost::compute::device device, char const *code) |
Convenience function to build a simple program and return it. More... | |
boost::compute::program | build_simple_program (boost::compute::context context, boost::compute::device device, std::istream &code) |
Convenience function to build a simple program and return it. More... | |
boost::compute::device | device_selector (config const &cfg) |
Select an OpenCL device matching the current configuration. More... | |
boost::compute::device | device_selector () |
Return the default OpenCL device. More... | |
Variables | |
char const | generic_reduce_program_source [] |
Contains the code for the kernels used in computing the argmax. More... | |
Wrappers for the OpenCL library.
boost::compute::kernel jb::opencl::build_simple_kernel | ( | boost::compute::context | context, |
boost::compute::device | device, | ||
char const * | code, | ||
char const * | kernel_name | ||
) |
Build a simple program (one where everything is in a single string) and get a kernel from it.
Most of our kernels are relatively simple, so this routine is very convenient.
Definition at line 6 of file build_simple_kernel.cpp.
References build_simple_program().
Referenced by BOOST_AUTO_TEST_CASE().
boost::compute::kernel jb::opencl::build_simple_kernel | ( | boost::compute::context | context, |
boost::compute::device | device, | ||
std::istream & | code, | ||
char const * | kernel_name | ||
) |
Build a simple program from an iostream and get a kernel from the result.
Definition at line 13 of file build_simple_kernel.cpp.
References build_simple_program().
boost::compute::program jb::opencl::build_simple_program | ( | boost::compute::context | context, |
boost::compute::device | device, | ||
char const * | code | ||
) |
Convenience function to build a simple program and return it.
Build a problem that consists of a single source string, targeted to a single device.
Definition at line 20 of file build_simple_kernel.cpp.
References jb::error, and JB_LOG.
Referenced by BOOST_AUTO_TEST_CASE(), build_simple_kernel(), and build_simple_program().
boost::compute::program jb::opencl::build_simple_program | ( | boost::compute::context | context, |
boost::compute::device | device, | ||
std::istream & | code | ||
) |
Convenience function to build a simple program and return it.
Definition at line 37 of file build_simple_kernel.cpp.
References build_simple_program().
boost::compute::device jb::opencl::device_selector | ( | config const & | cfg | ) |
Select an OpenCL device matching the current configuration.
Definition at line 24 of file device_selector.cpp.
References jb::opencl::defaults::device_name(), and jb::opencl::config::device_name.
Referenced by BOOST_AUTO_TEST_CASE(), device_selector(), and main().
boost::compute::device jb::opencl::device_selector | ( | ) |
Return the default OpenCL device.
Definition at line 35 of file device_selector.cpp.
References device_selector().
char const jb::opencl::generic_reduce_program_source[] |
Contains the code for the kernels used in computing the argmax.
Referenced by jb::opencl::generic_reduce< reducer, input_type_t, output_type_t >::create_program().