aakaar.device_count¶
Returns the total number of CUDA-capable NVIDIA GPU devices currently accessible by the Aakaar runtime environment.
Signature¶
Returns¶
- int: The number of detected physical GPU devices.
Details¶
This function queries the system driver to enumerate available hardware. It is particularly useful when developing multi-GPU distribution strategies or when you need to select a specific device index for computation.
If aa.is_available() returns False, this function will typically return 0.
Example: