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
OpenDAS
ColossalAI
Commits
9f6f6569
Unverified
Commit
9f6f6569
authored
Apr 22, 2022
by
Frank Lee
Committed by
GitHub
Apr 22, 2022
Browse files
[setup] use env var instead of option for cuda ext (#839)
parent
943982d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
setup.py
setup.py
+1
-2
No files found.
setup.py
View file @
9f6f6569
...
...
@@ -9,8 +9,7 @@ this_dir = os.path.dirname(os.path.abspath(__file__))
build_cuda_ext
=
True
ext_modules
=
[]
if
'--no_cuda_ext'
in
sys
.
argv
:
sys
.
argv
.
remove
(
'--no_cuda_ext'
)
if
int
(
os
.
environ
.
get
(
'NO_CUDA_EXT'
,
'0'
))
==
1
:
build_cuda_ext
=
False
...
...
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