fix install bug
This commit is contained in:
parent
45a1ee4d84
commit
f97b77a64e
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -95,8 +95,8 @@ include_dirs = ["autogptq_cuda"]
|
||||||
additional_setup_kwargs = dict()
|
additional_setup_kwargs = dict()
|
||||||
if BUILD_CUDA_EXT:
|
if BUILD_CUDA_EXT:
|
||||||
from torch.utils import cpp_extension
|
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])
|
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)])
|
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(
|
extensions.append(
|
||||||
cpp_extension.CppExtension(
|
cpp_extension.CppExtension(
|
||||||
"cQIGen",
|
"cQIGen",
|
||||||
|
|
Loading…
Add table
Reference in a new issue