CLUtils  0.2.1
 Hosted by GitHub
Namespaces | Functions
CLUtils.cpp File Reference

Definitions of functions and methods for the CLUtils library. More...

#include <vector>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <chrono>
#include <CLUtils.hpp>
Include dependency graph for CLUtils.cpp:

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

Definitions of functions and methods 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.