Skip to content

FIXME experiments/*.py fail at lowering unless TORCHSIM_TIMING_MODE is in the environment #416

Open

Description

@YWHyuk

python experiments/gemm.py --size 128 128 128 with TORCHSIM_TIMING_MODE unset exits rc=1:

torch._inductor.exc.InductorError: LoweringException: RuntimeError: TORCHSIM_TIMING_MODE changed after pytorchsim was installed: Inductor's epilogue-fusion benchmark follows the mode the process started in

Each script (gemm, conv, attention, BERT, resnet18/50, layernorm, softmax) calls os.environ.setdefault("TORCHSIM_TIMING_MODE", ...) after import torch. By then the device package has already installed pytorchsim under the mode the process started in. Exporting TORCHSIM_TIMING_MODE=1 before running avoids the error.

Reproduced in docker local/torchsim_base:ptb-9618c0e.

Found while reviewing #413.

Activity

  1. added
    bug
    on Oct 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions