Registry / other / cub
library2.1.0vcpkgunverified

CUB is a flexible library of cooperative threadblock primitives and other utilities for CUDA kernel programming

vcpkg install cub
INSTALL
IMPORT
SIG · CUB
C
cub
othercppv2.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

cub/cub.cuh
#include <cub/cub.cuh>

Sort keys using CUB radix sort

#include <cub/cub.cuh> #include <thrust/device_vector.h> int main() { thrust::device_vector<int> d_in = {3, 1, 4, 1, 5}; thrust::device_vector<int> d_out(d_in.size()); size_t temp_storage_bytes = 0; cub::DeviceRadixSort::SortKeys(nullptr, temp_storage_bytes, d_in.data().get(), d_out.data().get(), d_in.size()); thrust::device_vector<char> temp_storage(temp_storage_bytes); cub::DeviceRadixSort::SortKeys(temp_storage.data().get(), temp_storage_bytes, d_in.data().get(), d_out.data().get(), d_in.size()); return 0; }
Debug
Known issues
gotchaHeader-only library; requires CUDA toolkit
fix
Ensure CUDA is installed and CMake finds CUB via find_package(CUB)
affects: *
Upgrade
Version history
2.1.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources

No resource links recorded.

cub — pip install cub · libregistry