Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
ba8ae1d8
"docs/vscode:/vscode.git/clone" did not exist on "63f1fde277d063fbd36ccf43cb709fafca754ed5"
Unverified
Commit
ba8ae1d8
authored
Mar 20, 2024
by
bnellnm
Committed by
GitHub
Mar 20, 2024
Browse files
Check for _is_cuda() in compute_num_jobs (#3481)
parent
84eaa684
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
setup.py
setup.py
+6
-6
No files found.
setup.py
View file @
ba8ae1d8
...
...
@@ -61,12 +61,12 @@ class cmake_build_ext(build_ext):
except
AttributeError
:
num_jobs
=
os
.
cpu_count
()
nvcc_threads
=
None
if
_is_cuda
():
nvcc_cuda_version
=
get_nvcc_cuda_version
()
if
nvcc_cuda_version
>=
Version
(
"11.2"
):
nvcc_threads
=
int
(
os
.
getenv
(
"NVCC_THREADS"
,
8
))
num_jobs
=
max
(
1
,
round
(
num_jobs
/
(
nvcc_threads
/
4
)))
else
:
nvcc_threads
=
None
return
num_jobs
,
nvcc_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