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
dgl
Commits
7e58236c
Unverified
Commit
7e58236c
authored
Jun 03, 2021
by
Quan (Andy) Gan
Committed by
GitHub
Jun 03, 2021
Browse files
[Build] Fix NCCL building crashes when using submodules but with system NCCL installed (#2975)
parent
75ec5826
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
CMakeLists.txt
CMakeLists.txt
+2
-1
No files found.
CMakeLists.txt
View file @
7e58236c
...
@@ -162,11 +162,12 @@ if(USE_CUDA)
...
@@ -162,11 +162,12 @@ if(USE_CUDA)
if
(
USE_SYSTEM_NCCL
)
if
(
USE_SYSTEM_NCCL
)
include
(
cmake/util/FindNccl.cmake
)
include
(
cmake/util/FindNccl.cmake
)
include_directories
(
${
NCCL_INCLUDE_DIR
}
)
else
()
else
()
include
(
cmake/modules/NCCL.cmake
)
include
(
cmake/modules/NCCL.cmake
)
cuda_include_directories
(
BEFORE
${
NCCL_INCLUDE_DIR
}
)
endif
()
endif
()
include_directories
(
${
NCCL_INCLUDE_DIR
}
)
list
(
APPEND DGL_LINKER_LIBS
${
NCCL_LIBRARY
}
)
list
(
APPEND DGL_LINKER_LIBS
${
NCCL_LIBRARY
}
)
endif
(
USE_CUDA
)
endif
(
USE_CUDA
)
...
...
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