[AOTI] Switch fbcode HIP to C shim version v2 (#133105)

Summary: Completely switch over the default value of c_shim_version to 2

Test Plan: CI

Differential Revision: D60674018

Pull Request resolved: https://github.com/pytorch/pytorch/pull/133105
Approved by: https://github.com/ColinPeppler, https://github.com/zoranzhao
This commit is contained in:
Bin Bao
2024-08-14 19:39:10 +00:00
committed by PyTorch MergeBot
parent 6980e9e569
commit bedf96d7ff

View File

@ -65,9 +65,7 @@ abi_compatible = (
os.environ.get("TORCHINDUCTOR_ABI_COMPATIBLE", "1" if is_fbcode() else "0") == "1"
)
c_shim_version = os.environ.get(
"TORCHINDUCTOR_C_SHIM_VERSION", "1" if (is_fbcode() and torch.version.hip) else "2"
)
c_shim_version = os.environ.get("TORCHINDUCTOR_C_SHIM_VERSION", "2")
# dead code elimination
dce = False