This is the Khronos OpenCL SDK. It brings together all the components needed to develop OpenCL applications:
external/OpenCL-Headers/
)external/OpenCL-CLHPP/include
)external/OpenCL-ICD-Loader
)lib/include
)It also contains resources useful to OpenCL developers:
samples/
)docs/
)This repository uses sub-modules for the OpenCL Headers, OpenCL C++ bindings, and OpenCL ICD Loader and some of their transitive dependencies.
To clone a new repository with all sub-modules included, use the --recursive
option. Note that this option clones all sub-modules and their dependencies, which are not strictly required for the OpenCL SDK:
git clone --recursive https://github.com/KhronosGroup/OpenCL-SDK.git
Alternatively, to clone only the sub-modules for the OpenCL SDK, first clone this repository without sub-modules included then setup submodules non-recursively:
git clone https://github.com/KhronosGroup/OpenCL-SDK.git
git submodule init
git submodule update
The SDK uses CMake for its build system. If CMake is not provided by your build system or OS package manager, please consult the CMake website.
The SDK samples depend on
In most cases, the following steps may be used to build the OpenCL SDK.
Clone this repo and update submodules:
git clone https://github.com/KhronosGroup/OpenCL-SDK.git
git submodule init
git submodule update
Create a "build" directory:
Generate build files inside of the "build" directory:
cmake .. -DCMAKE_BUILD_TYPE=Release
Build the OpenCL SDK and copy files to an "install" directory:
cmake --build . --target install --config Release
Or, build the OpenCL SDK using the generated build files directly.
To customize a build, the following CMake variables are supported. To specify one of these variables via the command line generator, use the CMake syntax -D<variable>=<value>
. See your CMake documentation for more details.
TRUE
OPENCL_SDK_BUILD_SAMPLES BOOL Enables building OpenCL SDK samples. Default: TRUE
OPENCL_SDK_BUILD_OPENGL_SAMPLES BOOL Enables building OpenCL SDK samples that interoperate with OpenGL. Default: FALSE
OPENCL_SDK_BUILD_VULKAN_SAMPLES BOOL Enables building OpenCL SDK samples that interoperate with Vulkan. Default: FALSE
OPENCL_SDK_TEST_SAMPLES BOOL Enables a target to test the OpenCL SDK samples. Default: TRUE
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4