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
pyg_autoscale
Commits
6c2d04c2
"vscode:/vscode.git/clone" did not exist on "90a308f3c3f48a78306cc8ad6c227b7bda3a36f2"
Commit
6c2d04c2
authored
Aug 25, 2022
by
rusty1s
Browse files
add FORCE_CUDA flag
parent
89c21e32
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
setup.py
setup.py
+9
-5
No files found.
setup.py
View file @
6c2d04c2
import
os
import
sys
import
glob
import
os
import
os.path
as
osp
from
setuptools
import
setup
,
find_package
s
import
sy
s
import
torch
from
setuptools
import
find_packages
,
setup
from
torch.__config__
import
parallel_info
from
torch.utils.cpp_extension
import
BuildExtension
from
torch.utils.cpp_extension
import
CppExtension
,
CUDAExtension
,
CUDA_HOME
from
torch.utils.cpp_extension
import
(
CUDA_HOME
,
BuildExtension
,
CppExtension
,
CUDAExtension
)
WITH_CUDA
=
torch
.
cuda
.
is_available
()
and
CUDA_HOME
is
not
None
if
os
.
getenv
(
'FORCE_CUDA'
,
'0'
)
==
'1'
:
WITH_CUDA
=
True
if
os
.
getenv
(
'FORCE_ONLY_CPU'
,
'0'
)
==
'1'
:
WITH_CUDA
=
False
def
get_extensions
():
...
...
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