{"id":60282,"library":"opencl","title":"OpenCL","description":"OpenCL SDK for heterogeneous parallel computing on CPUs, GPUs, and other processors.","status":"active","version":"2024.10.24","language":"cpp","source_language":null,"source_url":null,"tags":["opencl","gpgpu","parallel","compute"],"install":[{"cmd":"vcpkg install opencl","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(opencl CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE OpenCL::OpenCL)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"CL/cl.h","correct":"#include <CL/cl.h>"}],"quickstart":{"code":"#include <CL/cl.h>\n#include <iostream>\n\nint main() {\n    cl_uint platformCount;\n    clGetPlatformIDs(0, nullptr, &platformCount);\n    std::cout << \"Number of OpenCL platforms: \" << platformCount << \"\\n\";\n    return 0;\n}","lang":"cpp","description":"Query number of available OpenCL platforms"},"warnings":[{"fix":"Ensure appropriate OpenCL runtime is installed on the target system.","message":"OpenCL requires a runtime (driver) from the hardware vendor; headers alone are insufficient.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'comput':7,17 'cpus':9 'gpgpu':15 'gpus':10 'heterogen':5 'opencl':1,2,14 'parallel':6,16 'processor':13 'sdk':3","created_at":"2026-06-16T19:24:00.195465+00:00","updated_at":"2026-06-16T19:24:00.195465+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}