Skip to content

Viztracer + torch.compile never exits #583

@mwlon

Description

@mwlon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions