Here's a simple script that runs forever when run with viztracer -- <this file>
import torch
@torch.compile
def add(x, y):
return x + y
It appears this is due to the torch compile inductor workers: I believe this is where they're spawned, so they only die on parent process exit. But viztracer waits for its children to die first, so we get stuck in an infinite loop.
Here's a simple script that runs forever when run with
viztracer -- <this file>It appears this is due to the torch compile inductor workers: I believe this is where they're spawned, so they only die on parent process exit. But viztracer waits for its children to die first, so we get stuck in an infinite loop.