CLUtils  0.2.1
 Hosted by GitHub
Classes | Namespaces | Macros | Functions
CLUtils.hpp File Reference

Declarations of objects, functions and classes for the CLUtils library. More...

#include <iostream>
#include <iomanip>
#include <vector>
#include <algorithm>
#include <unordered_map>
#include <chrono>
#include <cassert>
#include <cmath>
#include <CL/cl.hpp>
Include dependency graph for CLUtils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  clutils::CLEnv
 Sets up an OpenCL environment. More...
 
class  clutils::CLEnvInfo< nQueues >
 Facilitates the conveyance of CLEnv arguments. More...
 
class  clutils::ProfilingInfo< nSize, rep >
 A class that collects and manipulates timing information about a test. More...
 
class  clutils::CPUTimer< rep, period >
 A class for measuring execution times. More...
 
class  clutils::GPUTimer< period >
 A class for profiling CL devices. More...
 

Namespaces

 clutils
 It brings together functionality common to all OpenCL projects.
 

Functions

const char * clutils::getOpenCLErrorCodeString (int errorCode)
 Returns the name of an error code. More...
 
bool clutils::checkCLGLInterop (cl::Device &device)
 Checks the availability of the "GL Sharing" capability. More...
 
void clutils::readSource (const std::vector< std::string > &kernel_filenames, std::vector< std::string > &sourceCodes)
 Reads in the contents from the requested files. More...
 
void clutils::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 > clutils::make_kernel_pair (const std::string &kernel_filename)
 Creates a pair of a char array (source code) and its size. More...
 

Detailed Description

Declarations of objects, functions and classes for the CLUtils library.

CLUtils offers utilities that help setup and manage an OpenCL environment.

Author
Nick Lamprianidis
Version
0.2.1
Date
2014-2015
Copyright (c) 2014 Nick Lamprianidis
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.