Gpu utils
get_first_available_gpu_id(limit: int) -> Optional[int]
Returns the ID of the first GPU with memory usage <= limit or None
if no GPU could be found.
Source code in opskrift/gpu_utils.py
7 8 9 10 11 12 13 14 15 16 17 18 19 |
|