Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ def get_extensions():
)

is_rocm_pytorch = False
TORCH_MAJOR = int(torch.__version__.split(".")[0])
TORCH_MINOR = int(torch.__version__.split(".")[1])
if TORCH_MAJOR > 1 or (TORCH_MAJOR == 1 and TORCH_MINOR >= 5):

if torch.__version__ >= "1.5":
from torch.utils.cpp_extension import ROCM_HOME

is_rocm_pytorch = True if ((torch.version.hip is not None) and (ROCM_HOME is not None)) else False
Expand Down