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
02ead75d
Commit
02ead75d
authored
Feb 20, 2021
by
Rick Ho
Browse files
add nccl to lib list
parent
da11cb76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
setup.py
setup.py
+4
-1
No files found.
setup.py
View file @
02ead75d
...
...
@@ -7,8 +7,10 @@ CUDA_HELPER = os.environ.get('CUDA_HELPER', '/usr/local/cuda/samples/common/inc'
cxx_flags
=
[
'-I{}'
.
format
(
CUDA_HELPER
)
]
ext_libs
=
[]
if
os
.
environ
.
get
(
'USE_NCCL'
,
'0'
)
==
'1'
:
cxx_flags
.
append
(
'-DMOE_USE_NCCL'
)
ext_libs
.
append
(
'nccl'
)
if
__name__
==
'__main__'
:
...
...
@@ -34,7 +36,8 @@ if __name__ == '__main__':
extra_compile_args
=
{
'cxx'
:
cxx_flags
,
'nvcc'
:
cxx_flags
}
},
libraries
=
ext_libs
)
],
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