Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of gr-peach-opencv-project-sd-card by
opencl_core.hpp
00001 /*M/////////////////////////////////////////////////////////////////////////////////////// 00002 // 00003 // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. 00004 // 00005 // By downloading, copying, installing or using the software you agree to this license. 00006 // If you do not agree to this license, do not download, install, 00007 // copy or use the software. 00008 // 00009 // 00010 // License Agreement 00011 // For Open Source Computer Vision Library 00012 // 00013 // Copyright (C) 2010-2013, Advanced Micro Devices, Inc., all rights reserved. 00014 // Third party copyrights are property of their respective owners. 00015 // 00016 // Redistribution and use in source and binary forms, with or without modification, 00017 // are permitted provided that the following conditions are met: 00018 // 00019 // * Redistribution's of source code must retain the above copyright notice, 00020 // this list of conditions and the following disclaimer. 00021 // 00022 // * Redistribution's in binary form must reproduce the above copyright notice, 00023 // this list of conditions and the following disclaimer in the documentation 00024 // and/or other materials provided with the distribution. 00025 // 00026 // * The name of the copyright holders may not be used to endorse or promote products 00027 // derived from this software without specific prior written permission. 00028 // 00029 // This software is provided by the copyright holders and contributors "as is" and 00030 // any express or implied warranties, including, but not limited to, the implied 00031 // warranties of merchantability and fitness for a particular purpose are disclaimed. 00032 // In no event shall the OpenCV Foundation or contributors be liable for any direct, 00033 // indirect, incidental, special, exemplary, or consequential damages 00034 // (including, but not limited to, procurement of substitute goods or services; 00035 // loss of use, data, or profits; or business interruption) however caused 00036 // and on any theory of liability, whether in contract, strict liability, 00037 // or tort (including negligence or otherwise) arising in any way out of 00038 // the use of this software, even if advised of the possibility of such damage. 00039 // 00040 //M*/ 00041 00042 #ifndef __OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP__ 00043 #define __OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP__ 00044 00045 #ifdef HAVE_OPENCL 00046 00047 #if defined(HAVE_OPENCL_STATIC) 00048 00049 #if defined __APPLE__ 00050 #include <OpenCL/cl.h> 00051 #else 00052 #include <CL/cl.h> 00053 #endif 00054 00055 #else // HAVE_OPENCL_STATIC 00056 00057 #ifndef CL_RUNTIME_EXPORT 00058 #if (defined(BUILD_SHARED_LIBS) || defined(OPENCV_CORE_SHARED)) && (defined WIN32 || defined _WIN32 || defined WINCE) 00059 #define CL_RUNTIME_EXPORT __declspec(dllimport) 00060 #else 00061 #define CL_RUNTIME_EXPORT 00062 #endif 00063 #endif 00064 00065 #ifdef HAVE_OPENCL_SVM 00066 #define clSVMAlloc clSVMAlloc_ 00067 #define clSVMFree clSVMFree_ 00068 #define clSetKernelArgSVMPointer clSetKernelArgSVMPointer_ 00069 #define clSetKernelExecInfo clSetKernelExecInfo_ 00070 #define clEnqueueSVMFree clEnqueueSVMFree_ 00071 #define clEnqueueSVMMemcpy clEnqueueSVMMemcpy_ 00072 #define clEnqueueSVMMemFill clEnqueueSVMMemFill_ 00073 #define clEnqueueSVMMap clEnqueueSVMMap_ 00074 #define clEnqueueSVMUnmap clEnqueueSVMUnmap_ 00075 #endif 00076 00077 #include "autogenerated/opencl_core.hpp" 00078 00079 #endif // HAVE_OPENCL_STATIC 00080 00081 #ifndef CL_DEVICE_DOUBLE_FP_CONFIG 00082 #define CL_DEVICE_DOUBLE_FP_CONFIG 0x1032 00083 #endif 00084 00085 #ifndef CL_DEVICE_HALF_FP_CONFIG 00086 #define CL_DEVICE_HALF_FP_CONFIG 0x1033 00087 #endif 00088 00089 #ifndef CL_VERSION_1_2 00090 #define CV_REQUIRE_OPENCL_1_2_ERROR CV_ErrorNoReturn(cv::Error::OpenCLApiCallError, "OpenCV compiled without OpenCL v1.2 support, so we can't use functionality from OpenCL v1.2") 00091 #endif 00092 00093 #endif // HAVE_OPENCL 00094 00095 #endif // __OPENCV_CORE_OCL_RUNTIME_OPENCL_CORE_HPP__ 00096
Generated on Tue Jul 12 2022 14:47:30 by
1.7.2
