cub::DeviceCount

Defined in 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.