{"id":60259,"library":"cuda","title":"CUDA","description":"A parallel computing platform and programming model","status":"active","version":"10.1","language":"cpp","source_language":null,"source_url":null,"tags":["gpu","parallel","computing","nvidia"],"install":[{"cmd":"vcpkg install cuda","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(cuda CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE CUDA::cuda_driver)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"cuda_runtime.h","correct":"#include <cuda_runtime.h>"}],"quickstart":{"code":"#include <cuda_runtime.h>\n#include <cstdio>\n\nint main() {\n    int deviceCount;\n    cudaGetDeviceCount(&deviceCount);\n    printf(\"CUDA devices: %d\\n\", deviceCount);\n    return 0;\n}","lang":"cpp","description":"Query the number of available CUDA devices"},"warnings":[{"fix":"Install NVIDIA CUDA Toolkit from developer.nvidia.com","message":"CUDA toolkit must be installed separately; vcpkg port only provides CMake integration","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'comput':4,11 'cuda':1 'gpu':9 'model':8 'nvidia':12 'parallel':3,10 'platform':5 'program':7","created_at":"2026-06-16T19:23:12.089018+00:00","updated_at":"2026-06-16T19:23:12.089018+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}}