cub::DeviceCount

Defined in /home/runner/work/cccl/cccl/cub/cub/util_device.cuh

inline int cub::DeviceCount()

Returns the number of CUDA devices available.

Note

This function may cache the result internally.

Note

This function is thread safe.