File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -162,12 +162,15 @@ def get_hip_version(rocm_dir) -> Optional[str]:
162162
163163def 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 ,
You can’t perform that action at this time.
0 commit comments