Skip to content

Commit

Permalink
[2nd try][AOTI] Switch to use shim v2 (pytorch#128521)
Browse files Browse the repository at this point in the history
Test Plan: Sandcastle

Differential Revision: D58470269

Pull Request resolved: pytorch#128521
Approved by: https://github.com/desertfire
  • Loading branch information
hl475 authored and pytorchmergebot committed Jun 12, 2024
1 parent 4423e1b commit eb1db67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/_inductor/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def is_fbcode():
)

c_shim_version = os.environ.get(
"TORCHINDUCTOR_C_SHIM_VERSION", "1" if is_fbcode() else "2"
"TORCHINDUCTOR_C_SHIM_VERSION", "1" if (is_fbcode() and torch.version.hip) else "2"
)

# dead code elimination
Expand Down

0 comments on commit eb1db67

Please sign in to comment.