cub::CurrentDevice

Defined in cub/util_device.cuh

inline int cub::CurrentDevice()

Returns the current device or -1 if an error occurred.