Skip to main content

Module device

Module device 

Source
Expand description

Device selection for CPU/CUDA

Functionsยง

cuda_is_available
Check if CUDA is available
get_device
Get best available device (CUDA if available, otherwise CPU)
get_device_info
Get device info string
get_device_info_string
get device information
get_device_with_preference
Get device with preference (for testing/debugging)
log_device_info
print_device_info