fix typo in getenv call (#1972)
This commit is contained in:
parent
24f60a54f4
commit
c8e7eb1eb3
2
setup.py
2
setup.py
@ -138,7 +138,7 @@ for capability in compute_capabilities:
|
|||||||
|
|
||||||
# Use NVCC threads to parallelize the build.
|
# Use NVCC threads to parallelize the build.
|
||||||
if nvcc_cuda_version >= Version("11.2"):
|
if nvcc_cuda_version >= Version("11.2"):
|
||||||
nvcc_threads = int(os.getenv("NVCC_THREADS"), 8)
|
nvcc_threads = int(os.getenv("NVCC_THREADS", 8))
|
||||||
num_threads = min(os.cpu_count(), nvcc_threads)
|
num_threads = min(os.cpu_count(), nvcc_threads)
|
||||||
NVCC_FLAGS += ["--threads", str(num_threads)]
|
NVCC_FLAGS += ["--threads", str(num_threads)]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user