aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencl/usage
blob: 38570b26a4cbcb4a8897104347bc8ff537f9eff6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
opencl provides CMake targets:

  find_package(OpenCL CONFIG REQUIRED)

  # Khronos OpenCL ICD Loader
  target_link_libraries(main PRIVATE OpenCL::OpenCL)

  # Khronos OpenCL Headers and C++ bindings
  target_link_libraries(main PRIVATE OpenCL::Headers)
  target_link_libraries(main PRIVATE OpenCL::HeadersCpp)

  # OpenCL Utility Library and C++ bindings
  target_link_libraries(main PRIVATE OpenCL::Utils)
  target_link_libraries(main PRIVATE OpenCL::UtilsCpp)

opencl provides pkg-config modules:

  # Khronos OpenCL ICD Loader
  OpenCL

  # Khronos OpenCL Headers and C++ bindings
  OpenCL-Headers
  OpenCL-CLHPP

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:
           https://support.apple.com/en-us/HT202823