Skip to content

Commit 6231313

Browse files
committed
lint
1 parent b2d759b commit 6231313

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,15 @@ def get_hip_version(rocm_dir) -> Optional[str]:
162162

163163
def detect_hipify_v2():
164164
try:
165-
from torch.utils.hipify import __version__
166165
from packaging.version import Version
166+
from torch.utils.hipify import __version__
167+
167168
if Version(__version__) >= Version("2.0.0"):
168169
return True
169170
except Exception as e:
170-
print("failed to detect pytorch hipify version, defaulting to version 1.0.0 behavior")
171+
print(
172+
"failed to detect pytorch hipify version, defaulting to version 1.0.0 behavior"
173+
)
171174
print(e)
172175
return False
173176

@@ -515,9 +518,7 @@ def get_extensions():
515518
if cuda_version < 1205:
516519
# swiglu_fairinternal.cu uses cuda::ptx::cp_async_bulk which requires
517520
# CUDA 12.5
518-
sources.remove(
519-
os.path.join(extensions_dir, "swiglu_fairinternal.cu")
520-
)
521+
sources.remove(os.path.join(extensions_dir, "swiglu_fairinternal.cu"))
521522
include_dirs += [
522523
sputnik_dir,
523524
cutlass_dir,

0 commit comments

Comments
 (0)