It brings together functionality common to all OpenCL projects. More...
Classes | |
| class | CLEnv |
| Sets up an OpenCL environment. More... | |
| class | CLEnvInfo |
Facilitates the conveyance of CLEnv arguments. More... | |
| class | CPUTimer |
| A class for measuring execution times. More... | |
| class | GPUTimer |
| A class for profiling CL devices. More... | |
| class | ProfilingInfo |
| A class that collects and manipulates timing information about a test. More... | |
Functions | |
| const char * | getOpenCLErrorCodeString (int errorCode) |
| Returns the name of an error code. More... | |
| bool | checkCLGLInterop (cl::Device &device) |
| Checks the availability of the "GL Sharing" capability. More... | |
| void | readSource (const std::vector< std::string > &kernel_filenames, std::vector< std::string > &sourceCodes) |
| Reads in the contents from the requested files. More... | |
| void | split (const std::string &str, char delim, std::vector< std::string > &names) |
| Splits a string on the requested delimiter. More... | |
| std::pair< const char *, size_t > | make_kernel_pair (const std::string &kernel_filename) |
| Creates a pair of a char array (source code) and its size. More... | |
It brings together functionality common to all OpenCL projects.
It offers structures that aim to ease the process of setting up and maintaining an OpenCL environment.
| bool clutils::checkCLGLInterop | ( | cl::Device & | device | ) |
Checks the availability of the "GL Sharing" capability.
| [in] | device | a device for which to check the "GL Sharing" capability. |
| const char * clutils::getOpenCLErrorCodeString | ( | int | errorCode | ) |
Returns the name of an error code.
Gets an error code and returns its name.
| [in] | errorCode | an error code. |
| std::pair< const char *, size_t > clutils::make_kernel_pair | ( | const std::string & | sourceCode | ) |
Creates a pair of a char array (source code) and its size.
An operator to be used for producing the pairs required by a cl::Program::Sources object.
| [in] | sourceCode | the source code of a kernel (.cl) file. |
| void clutils::readSource | ( | const std::vector< std::string > & | kernel_filenames, |
| std::vector< std::string > & | sourceCodes | ||
| ) |
Reads in the contents from the requested files.
| [in] | kernel_filenames | a vector of strings with the names of the kernel files (.cl). |
| [out] | sourceCodes | a vector of strings with the contents of the files. |
| void clutils::split | ( | const std::string & | str, |
| char | delim, | ||
| std::vector< std::string > & | names | ||
| ) |
Splits a string on the requested delimiter.
| [in] | str | string containing the tokens. |
| [in] | delim | delimiter on which to split the string. |
| [out] | names | a vector of all the tokens. |
1.8.9.1