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
torch-spline-conv
Commits
31a4031d
Commit
31a4031d
authored
Feb 15, 2021
by
rusty1s
Browse files
update
parent
eb9f24b5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
script/cuda.sh
script/cuda.sh
+1
-1
setup.py
setup.py
+3
-1
No files found.
script/cuda.sh
View file @
31a4031d
...
@@ -69,7 +69,7 @@ if [ "${TRAVIS_OS_NAME}" = "osx" ] && [ "$IDX" = "cpu" ]; then
...
@@ -69,7 +69,7 @@ if [ "${TRAVIS_OS_NAME}" = "osx" ] && [ "$IDX" = "cpu" ]; then
fi
fi
if
[
"
${
IDX
}
"
=
"cpu"
]
;
then
if
[
"
${
IDX
}
"
=
"cpu"
]
;
then
export
FORCE_CPU
=
1
export
FORCE_
ONLY_
CPU
=
1
else
else
export
FORCE_CUDA
=
1
export
FORCE_CUDA
=
1
fi
fi
...
...
setup.py
View file @
31a4031d
...
@@ -11,8 +11,10 @@ from torch.utils.cpp_extension import CppExtension, CUDAExtension, CUDA_HOME
...
@@ -11,8 +11,10 @@ from torch.utils.cpp_extension import CppExtension, CUDAExtension, CUDA_HOME
WITH_CUDA
=
torch
.
cuda
.
is_available
()
and
CUDA_HOME
is
not
None
WITH_CUDA
=
torch
.
cuda
.
is_available
()
and
CUDA_HOME
is
not
None
suffices
=
[
'cpu'
,
'cuda'
]
if
WITH_CUDA
else
[
'cpu'
]
suffices
=
[
'cpu'
,
'cuda'
]
if
WITH_CUDA
else
[
'cpu'
]
if
os
.
getenv
(
'FORCE_CUDA'
,
'0'
)
==
'1'
:
if
os
.
getenv
(
'FORCE_CUDA'
,
'0'
)
==
'1'
:
suffices
=
[
'cuda'
,
'cpu'
]
if
os
.
getenv
(
'FORCE_ONLY_CUDA'
,
'0'
)
==
'1'
:
suffices
=
[
'cuda'
]
suffices
=
[
'cuda'
]
if
os
.
getenv
(
'FORCE_CPU'
,
'0'
)
==
'1'
:
if
os
.
getenv
(
'FORCE_
ONLY_
CPU'
,
'0'
)
==
'1'
:
suffices
=
[
'cpu'
]
suffices
=
[
'cpu'
]
BUILD_DOCS
=
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
BUILD_DOCS
=
os
.
getenv
(
'BUILD_DOCS'
,
'0'
)
==
'1'
...
...
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