warp.get_preferred_device#

warp.get_preferred_device()[source]#

Returns the preferred compute device, cuda:0 if available and cpu otherwise.

Return type:

Device