aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/opencl/usage
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/opencl/usage
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/opencl/usage')
-rw-r--r--vcpkg/ports/opencl/usage30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/opencl/usage b/vcpkg/ports/opencl/usage
new file mode 100644
index 0000000..38570b2
--- /dev/null
+++ b/vcpkg/ports/opencl/usage
@@ -0,0 +1,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