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
42b825fe
Commit
42b825fe
authored
Dec 29, 2020
by
Jiezhong Qiu
Browse files
Merge branch 'master' of github.com:xptree/poly-xfmr
parents
0ab605cc
fff1994e
Changes
1
Hide 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 @
42b825fe
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,10 +13,10 @@ setup(
...
@@ -10,10 +13,10 @@ 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
=
{
'build_ext'
:
BuildExtension
'build_ext'
:
BuildExtension
})
})
\ No newline at end of file
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