GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing android.googlesource.com — platform/external/OpenCL-ICD-Loader - Git at Google Bug: 324058162Clone this repo:
OpenCLTM ICD LoaderThis repo contains the source code and tests for the Khronos official OpenCL ICD Loader. CI Build StatusIntroductionOpenCL defines an Installable Client Driver (ICD) mechanism to allow developers to build applications against an Installable Client Driver loader (ICD loader) rather than linking their applications against a specific OpenCL implementation. The ICD Loader is responsible for:
This repo contains the source code and tests for the Khronos official OpenCL ICD Loader. Note that this repo does not contain an OpenCL implementation (ICD). You will need to obtain and install an OpenCL implementation for your OpenCL device that supports the OpenCL ICD extension The OpenCL Installable Client Driver extension ( Build Instructions
DependenciesThe OpenCL ICD Loader requires:
Example BuildFor most Windows and Linux usages, the following steps are sufficient to build the OpenCL ICD Loader:
Notes:
Example UseExample CMake invocation cmake -D CMAKE_PREFIX_PATH="/chosen/install/prefix/of/headers;/chosen/install/prefix/of/loader" /path/to/opencl/app and sample cmake_minimum_required(VERSION 3.0) cmake_policy(VERSION 3.0...3.18.4) project(proj) add_executable(app main.cpp) find_package(OpenCLHeaders REQUIRED) find_package(OpenCLICDLoader REQUIRED) target_link_libraries(app PRIVATE OpenCL::Headers OpenCL::OpenCL) OpenCL ICD Loader TestsOpenCL ICD Loader Tests can be run using (Note that running the tests manually requires setting up it's env manually, by setting Registering ICDsThe method to installing an ICD is operating system dependent. Registering an ICD on LinuxInstall your ICD by creating a file with the full path to the library of your implementation in echo full/path/to/libOpenCLDriverStub.so > /etc/OpenCL/vendors/test.icd Registering an ICD on WindowsInstall your ICD by adding a // For 32-bit operating systems, or 64-bit tests on a 64-bit operating system: HKEY_LOCAL_MACHINE\SOFTWARE\Khronos\OpenCL\Vendors // For 32-bit tests on a 64-bit operating system: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Khronos\OpenCL\Vendors // The name of the REG_DWORD value should be the full path to the library of your implementation, for eg. // OpenCLDriverStub.dll, and the data for this value should be 0. About LayersLayers have been added as an experimental feature in the OpenCL ICD Loader. We do not expect the API or ABI to change significantly, but the OpenCL Working Group reserves the right to do so. The layer support can also be completely deactivated during configuration by using the cmake -DENABLE_OPENCL_LAYERS=OFF For now, runtime configuration of layers is done using the We are looking for feedback. SupportPlease create a GitHub issue to report an issue or ask questions. ContributingContributions to the OpenCL ICD Loader are welcomed and encouraged. You will be prompted with a one-time “click-through” CLA dialog as part of submitting your pull request or other contribution to GitHub. Table of Debug Environment VariablesThe following debug environment variables are available for use with the OpenCL ICD loader:
| ||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |