Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
c8e7eb1e
Unverified
Commit
c8e7eb1e
authored
Dec 07, 2023
by
Daya Khudia
Committed by
GitHub
Dec 07, 2023
Browse files
fix typo in getenv call (#1972)
parent
24f60a54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
setup.py
setup.py
+1
-1
No files found.
setup.py
View file @
c8e7eb1e
...
@@ -138,7 +138,7 @@ for capability in compute_capabilities:
...
@@ -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
)]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment