#include <fstream>
#include <kinect2_registration/kinect2_console.h>
#include <CL/cl.hpp>
#include "depth_registration_opencl.h"
Go to the source code of this file.
Classes | |
struct | DepthRegistrationOpenCL::OCLData |
Macros | |
#define | CHECK_CL_ON_FAIL(expr, on_fail) do { cl_int err = (expr); if (err != CL_SUCCESS) { PRINT_CL_ERROR(#expr, err); on_fail; return false; } } while(0) |
#define | CHECK_CL_PARAM(expr) do { cl_int err = CL_SUCCESS; (expr); if (err != CL_SUCCESS) { PRINT_CL_ERROR(#expr, err); return false; } } while(0) |
#define | CHECK_CL_RETURN(expr) do { cl_int err = (expr); if (err != CL_SUCCESS) { PRINT_CL_ERROR(#expr, err); return false; } } while(0) |
#define | CL_FILENAME (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) |
#define | CL_USE_DEPRECATED_OPENCL_1_2_APIS |
#define | CL_USE_DEPRECATED_OPENCL_2_0_APIS |
#define | PRINT_CL_ERROR(expr, err) OUT_ERROR(FG_BLUE "[" << CL_FILENAME << "]" FG_CYAN "(" << __LINE__ << ") " FG_YELLOW << expr << FG_RED " failed: " << err) |
#define | REG_OPENCL_FILE "" |
Functions | |
std::string | deviceString (cl::Device &dev) |
void | getDevices (const std::vector< cl::Platform > &platforms, std::vector< cl::Device > &devices) |
bool | selectDevice (std::vector< cl::Device > &devices, cl::Device &device, const int deviceId=-1) |
#define CHECK_CL_ON_FAIL | ( | expr, | |
on_fail | |||
) | do { cl_int err = (expr); if (err != CL_SUCCESS) { PRINT_CL_ERROR(#expr, err); on_fail; return false; } } while(0) |
Definition at line 48 of file depth_registration_opencl.cpp.
#define CHECK_CL_PARAM | ( | expr | ) | do { cl_int err = CL_SUCCESS; (expr); if (err != CL_SUCCESS) { PRINT_CL_ERROR(#expr, err); return false; } } while(0) |
Definition at line 46 of file depth_registration_opencl.cpp.
#define CHECK_CL_RETURN | ( | expr | ) | do { cl_int err = (expr); if (err != CL_SUCCESS) { PRINT_CL_ERROR(#expr, err); return false; } } while(0) |
Definition at line 47 of file depth_registration_opencl.cpp.
#define CL_FILENAME (strrchr(__FILE__, '/') ? strrchr(__FILE__, '/') + 1 : __FILE__) |
Definition at line 43 of file depth_registration_opencl.cpp.
#define CL_USE_DEPRECATED_OPENCL_1_2_APIS |
Copyright 2014 University of Bremen, Institute for Artificial Intelligence Author: Thiemo Wiedemeyer wiede meye r@cs. uni- breme n.de
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition at line 22 of file depth_registration_opencl.cpp.
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS |
Definition at line 23 of file depth_registration_opencl.cpp.
#define PRINT_CL_ERROR | ( | expr, | |
err | |||
) | OUT_ERROR(FG_BLUE "[" << CL_FILENAME << "]" FG_CYAN "(" << __LINE__ << ") " FG_YELLOW << expr << FG_RED " failed: " << err) |
Definition at line 44 of file depth_registration_opencl.cpp.
#define REG_OPENCL_FILE "" |
Definition at line 36 of file depth_registration_opencl.cpp.
std::string deviceString | ( | cl::Device & | dev | ) |
Definition at line 118 of file depth_registration_opencl.cpp.
void getDevices | ( | const std::vector< cl::Platform > & | platforms, |
std::vector< cl::Device > & | devices | ||
) |
Definition at line 101 of file depth_registration_opencl.cpp.
bool selectDevice | ( | std::vector< cl::Device > & | devices, |
cl::Device & | device, | ||
const int | deviceId = -1 |
||
) |
Definition at line 144 of file depth_registration_opencl.cpp.