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
FastMoE
Commits
fff1994e
Commit
fff1994e
authored
Dec 29, 2020
by
Rick Ho
Browse files
optional cuda helper path by environ var
parent
b83ac1a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
pytorch/cuda/setup.py
pytorch/cuda/setup.py
+6
-3
No files found.
pytorch/cuda/setup.py
View file @
fff1994e
from
setuptools
import
setup
from
setuptools
import
setup
from
torch.utils.cpp_extension
import
BuildExtension
,
CUDAExtension
from
torch.utils.cpp_extension
import
BuildExtension
,
CUDAExtension
import
os
CUDA_HELPER
=
os
.
environ
.
get
(
'CUDA_HELPER'
,
'/usr/local/cuda/samples/common/inc'
)
setup
(
setup
(
name
=
'moe_cuda'
,
name
=
'moe_cuda'
,
...
@@ -10,8 +13,8 @@ setup(
...
@@ -10,8 +13,8 @@ setup(
'moe.cpp'
,
'moe.cpp'
,
'moe_cuda_kernel.cu'
,
'moe_cuda_kernel.cu'
,
],
],
extra_compile_args
=
{
'cxx'
:
[
'-I
/usr/local/cuda/samples/common/inc'
],
extra_compile_args
=
{
'cxx'
:
[
'-I
{}'
.
format
(
CUDA_HELPER
)
],
'nvcc'
:
[
'-I
/usr/local/cuda/samples/common/inc'
]}
'nvcc'
:
[
'-I
{}'
.
format
(
CUDA_HELPER
)
]}
)
)
],
],
cmdclass
=
{
cmdclass
=
{
...
...
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