1. Home
  2. Browse
  3. opencl

opencl

vv2023.02.06#3Latest

C/C++ headers and ICD loader (Installable Client Driver) for OpenCL

Install

Run the following Vcpkg command to install the port.

Usage

opencl provides CMake targets:

# Khronos OpenCL Headers

find_package(OpenCLHeaders CONFIG REQUIRED)

target_link_libraries(main PRIVATE OpenCL::Headers)

# Khronos OpenCL C++ Headers

find_package(OpenCLHeadersCpp CONFIG REQUIRED)

target_link_libraries(main PRIVATE OpenCL::HeadersCpp)

# Khronos OpenCL ICD Loader

find_package(OpenCLICDLoader CONFIG REQUIRED)

target_link_libraries(main PRIVATE OpenCL::OpenCL)

opencl provides pkg-config modules:

# Khronos OpenCL Headers

OpenCL-Headers

# Khronos OpenCL ICD Loader

OpenCL

This package is only an OpenCL SDK. To actually run OpenCL code you also need to install an implementation.

Windows: Implementations typically ship with the drivers of you CPU/GPU vendors.

Linux: Implementations may be installed from your distro's repo or manually.

Apple: Consult your distribution vendor on the state of OpenCL support:

Dependencies

See source

Version

vv2023.02.06#3

Publication

Supports

!uwp

GitHub

KhronosGroup/OpenCL-ICD-Loader241

Homepage

github.com/KhronosGroup/OpenCL-Headers

Subtree

6fb9a26cf4

License

Apache-2.0

Definition

Manifest