Thermovision#
- nsight.thermovision.get_gpu_tlimit(handle: Any)#
Returns the GPU T.Limit temparature for the given device handle.
- nsight.thermovision.init()#
Initializes the thermovision module by setting up the necessary hardware handle and checking if temperature retrieval is supported.
- Return type:
- Returns:
True if temperature retrieval is supported, False otherwise.
Notes
This function uses the NVML (NVIDIA Management Library) to initialize the GPU handle if the handle has not been set.
The global variable HANDLE is used to store the GPU handle.
- nsight.thermovision.is_temp_retrieval_supported()#
Checks if the GPU supports temperature retrieval.
- Return type:
- nsight.thermovision.throttle_guard(wait_threshold: int = 10, continue_threshold: int = 40)#
Delays execution if the GPU T.limit is below a specified threshold.
This function polls the GPU T.limit using NVML, and if it’s below the wait_threshold, it waits until it reaches at least the continue_threshold, checking at regular intervals.