fix install bug

This commit is contained in:
qwopqwop200 2023-08-31 15:00:38 +09:00 committed by GitHub
parent 45a1ee4d84
commit f97b77a64e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,7 +96,7 @@ additional_setup_kwargs = dict()
if BUILD_CUDA_EXT:
from torch.utils import cpp_extension
if platform != 'Windows':
if platform.system() != 'Windows':
p = int(subprocess.run("cat /proc/cpuinfo | grep cores | head -1", shell=True, check=True, text=True, stdout=subprocess.PIPE).stdout.split(" ")[2])
subprocess.call(["python", "./autogptq_extension/qigen/generate.py", "--module", "--search", "--p", str(p)])
@ -125,7 +125,7 @@ if BUILD_CUDA_EXT:
)
]
if platform != 'Windows':
if platform.system() != 'Windows':
extensions.append(
cpp_extension.CppExtension(
"cQIGen",