DeviceCount#

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.