• Home
  • Raw
  • Download

Lines Matching full:opencl

1 # OpenCL<sup>TM</sup> API Headers
3 This repository contains C language headers for the OpenCL API.
7 https://github.com/KhronosGroup/OpenCL-Headers
14 > While the OpenCL Headers can be built and installed in isolation, it is part of the [OpenCL SDK](…
18 - The OpenCL Headers CMake package support uses CMake for its build system.
35 cmake -D CMAKE_PREFIX_PATH=/chosen/install/prefix /path/to/opencl/app
46 target_link_libraries(app PRIVATE OpenCL::Headers)
51 The OpenCL API headers in this repository are Unified headers and are designed
52 to work with all released OpenCL versions. This differs from previous OpenCL
56 ## Compiling for a Specific OpenCL Version
58 By default, the OpenCL API headers in this repository are for the latest
59 OpenCL version (currently OpenCL 3.0). To use these API headers to target
60 a different OpenCL version, an application may `#define` the preprocessor
61 value `CL_TARGET_OPENCL_VERSION` before including the OpenCL API headers.
63 the OpenCL API version.
65 For example, to enforce usage of no more than the OpenCL 1.2 APIs, you may
66 include the OpenCL API headers as follows:
70 #include <CL/opencl.h>
75 By default, the OpenCL API headers in this repository declare function
76 prototypes for every known core OpenCL API and OpenCL extension API. If this is
81 applies to core OpenCL APIs and OpenCL extension APIs.
83 OpenCL APIs.
85 OpenCL extension APIs. This control applies to all OpenCL extension APIs.
87 declared for OpenCL extension APIs that are in the ICD dispatch table for
90 declared for OpenCL extension APIs that are not in the ICD dispatch table.
92 For example, to declare function prototypes for core OpenCL 3.0 APIs only, you
93 may include the OpenCL API headers as follows:
98 #include <CL/opencl.h>
103 OpenCL values backward compatibility and in most cases an application using an
104 older version of the OpenCL API headers can seamlessly update to a newer version
105 of the OpenCL API headers. In rare cases, though, the OpenCL API headers may
108 * Very rarely, there may be bugs or other issues in the OpenCL API headers that
110 * The OpenCL API headers for provisional features or provisional extensions may
113 Applications or libraries that require stable OpenCL API headers are encouraged
114 to use tagged or released OpenCL API headers. We will do our best to document
115 any breaking changes in the description of each release. The OpenCL API headers
116 are tagged at least as often as each OpenCL specification release.
122 LICENSE Source license for the OpenCL API headers
123 CL/ Unified OpenCL API headers tree
132 OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission by Khronos.