pytagi.cuda#
Functions#
|
Check if CUDA is available |
|
Check if NCCL is available |
|
Get the number of CUDA devices |
|
Get the current CUDA device |
|
Set the current CUDA device |
|
Check if a specific CUDA device is available |
|
Get the properties of a specific CUDA device |
|
Get the memory of a specific CUDA device |
Module Contents#
- pytagi.cuda.is_available() bool [source]#
Check if CUDA is available
- Returns:
True if CUDA is available, False otherwise
- Return type:
bool
- pytagi.cuda.is_nccl_available() bool [source]#
Check if NCCL is available
- Returns:
True if NCCL is available, False otherwise
- Return type:
bool
- pytagi.cuda.get_device_count() int [source]#
Get the number of CUDA devices
- Returns:
Number of CUDA devices
- Return type:
int
- pytagi.cuda.get_current_device() int [source]#
Get the current CUDA device
- Returns:
Current CUDA device
- Return type:
int
- pytagi.cuda.set_device(device_index: int) bool [source]#
Set the current CUDA device
- Parameters:
device_index – Device index to set
- pytagi.cuda.is_device_available(device_index: int) bool [source]#
Check if a specific CUDA device is available
- Parameters:
device_index – Device index to check