Remove unused variable from ROCm GPTQ install (#107)

This commit is contained in:
jllllll 2023-07-26 20:16:36 -05:00 committed by GitHub
parent 1e3c950c7d
commit ecd92d6a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,9 +238,6 @@ def update_dependencies():
if '+rocm' in torver: if '+rocm' in torver:
if os.path.exists('setup_rocm.py'): if os.path.exists('setup_rocm.py'):
os.replace("setup_rocm.py", "setup.py") os.replace("setup_rocm.py", "setup.py")
# Skip compile for AMD GPU if wheel is successfully installed
if rocm_gptq:
return
elif os.path.exists('setup_cuda.py'): elif os.path.exists('setup_cuda.py'):
os.rename("setup_cuda.py", "setup.py") os.rename("setup_cuda.py", "setup.py")