Compute Library
 23.08
OpenCL.h File Reference

Wrapper to configure the Khronos OpenCL C++ header. More...

#include <string>
#include <utility>
#include <CL/opencl.hpp>

Go to the source code of this file.

Data Structures

class  CLSymbols
 Class for loading OpenCL symbols. More...
 

Namespaces

 cl
 
 arm_compute
 Copyright (c) 2017-2023 Arm Limited.
 

Macros

#define CL_HPP_ENABLE_EXCEPTIONS
 
#define CL_TARGET_OPENCL_VERSION   300
 
#define CL_HPP_TARGET_OPENCL_VERSION   110
 
#define CL_HPP_MINIMUM_OPENCL_VERSION   110
 
#define DECLARE_FUNCTION_PTR(func_name)   std::function<decltype(func_name)> func_name##_ptr = nullptr
 

Functions

bool opencl_is_available ()
 Check if OpenCL is available. More...
 

Detailed Description

Wrapper to configure the Khronos OpenCL C++ header.

Definition in file OpenCL.h.

Macro Definition Documentation

◆ CL_HPP_ENABLE_EXCEPTIONS

#define CL_HPP_ENABLE_EXCEPTIONS

Definition at line 32 of file OpenCL.h.

◆ CL_HPP_MINIMUM_OPENCL_VERSION

#define CL_HPP_MINIMUM_OPENCL_VERSION   110

Definition at line 36 of file OpenCL.h.

◆ CL_HPP_TARGET_OPENCL_VERSION

#define CL_HPP_TARGET_OPENCL_VERSION   110

Definition at line 35 of file OpenCL.h.

◆ CL_TARGET_OPENCL_VERSION

#define CL_TARGET_OPENCL_VERSION   300

Definition at line 34 of file OpenCL.h.

◆ DECLARE_FUNCTION_PTR

#define DECLARE_FUNCTION_PTR (   func_name)    std::function<decltype(func_name)> func_name##_ptr = nullptr

Definition at line 91 of file OpenCL.h.