pti-gpu icon indicating copy to clipboard operation
pti-gpu copied to clipboard

Unitrace hangs on windows with BMG but OK on Linux

Open gaopengff opened this issue 11 months ago • 1 comments

I have tried to use unitrace to analyze my pytorch program with xpu device. Here is my simple program:

import torch
from torch.profiler import profile, ProfilerActivity

a = torch.randn(3).xpu()
b = torch.randn(3).xpu()
with torch.autograd.profiler.emit_itt(record_shapes=False):
    c = a + b

print(prof.key_averages().table())

I followed the instructions to build unitrace on windows, which has a BMG GPU. It hangs with the following command:

unitrace --chrome-kernel-logging --chrome-device-logging C:\Users\demouser\miniforge3\envs\test_torch\python.exe .\simple.py

Does unitrace support windows platform?

gaopengff avatar Jan 09 '25 06:01 gaopengff

Hello @gaopengff, Yes, Unitrace supports Windows. May I know if I can get the system to debug it?

Sarbojit2019 avatar Feb 05 '25 09:02 Sarbojit2019

@gaopengff With the latest unitrace, do you still have this issue? Can it be closed?

zma2 avatar Jul 16 '25 02:07 zma2

This issue does not exist. I'll close it.

gaopengff avatar Jul 18 '25 01:07 gaopengff