torch.xpu.memory.list_gpu_processes#
- torch.xpu.memory.list_gpu_processes(device=None)[source]#
Return a printout of running processes and their GPU memory usage on a given device.
- Parameters:
device (torch.device, str or int, optional) – selected device. Uses the current device, given by
current_device(), ifNone(default).- Returns:
A human-readable summary of each running process and the given GPU memory usage in MB.
- Return type:
Note
Process status is reported at the physical device level and reflects all processes associated with the device.