diff options
| author | Nagy-Egri Máté Ferenc <nagy-egri.mate@wigner.mta.hu> | 2019-09-11 21:57:02 +0200 |
|---|---|---|
| committer | Curtis J Bezault <curtbezault@gmail.com> | 2019-09-11 12:57:02 -0700 |
| commit | cdbaa03cdda27071675daa21f65a8ab0550fd280 (patch) | |
| tree | ada58391b1bf40da6b4e5ab2c1c8d2bcce129208 /ports/opencl/usage | |
| parent | 2b277b4ef6acb5872c5f98136db7cdb6c486cf02 (diff) | |
| download | vcpkg-cdbaa03cdda27071675daa21f65a8ab0550fd280.tar.gz vcpkg-cdbaa03cdda27071675daa21f65a8ab0550fd280.zip | |
Linux support for the OpenCL SDK package (#4204)
Enable building OpenCL libraries on Linux and macOS.
Diffstat (limited to 'ports/opencl/usage')
| -rw-r--r-- | ports/opencl/usage | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/ports/opencl/usage b/ports/opencl/usage index 699ff0170..adcd2232f 100644 --- a/ports/opencl/usage +++ b/ports/opencl/usage @@ -1,7 +1,16 @@ -The package opencl is compatible with built-in CMake targets: +The package opencl is compatible with built-in CMake targets via CMake v3.6 and prior syntax find_package(OpenCL REQUIRED) target_link_libraries(main PRIVATE ${OpenCL_LIBRARIES}) target_include_directories(main PRIVATE ${OpenCL_INCLUDE_DIRS}) -You will also need to install an appropriate driver package from your CPU/GPU manufacturer. +and the CMake v3.7 and beyond imported target syntax + + find_package(OpenCL REQUIRED) + target_link_libraries(main PRIVATE OpenCL::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. There are too many to count. + APPLE: consult your distribution vendor on the state of OpenCL support: https://support.apple.com/en-us/HT202823 |
