Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update forked branch-0.15 from release #1

Merged
merged 210 commits into from
Jul 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
210 commits
Select commit Hold shift + click to select a range
fd38dbb
Initial commit of raft comms
cjnolet May 7, 2020
8a6e054
Removing cuml verbiage
cjnolet May 7, 2020
2bfc0dc
Renaming to comms_t, removing logs for now, adding to handle
cjnolet May 8, 2020
f129710
Looking like it's building!
cjnolet May 8, 2020
a0c13af
Adding NCCL and UCX build for tests
cjnolet May 8, 2020
7ad2053
Merge branch 'fea-ext-migrate-cumlHandle_impl-into-raft' into fea-ext…
cjnolet May 8, 2020
cb19482
Consolidating injection functions
cjnolet May 8, 2020
1d66637
Merge branch 'fea-ext-migrate-cumlHandle_impl-into-raft' into fea-ext…
cjnolet May 12, 2020
1548177
Making progress on Python. Need to refactor the comms interface a li…
cjnolet May 12, 2020
5d37e9e
Cython is building!
cjnolet May 13, 2020
bd1b876
The comms tests pass!!!
cjnolet May 13, 2020
98496d3
Fixing flake8 style
cjnolet May 13, 2020
fb52f79
Running clang format and removing getDataType
cjnolet May 13, 2020
d666314
Merge remote-tracking branch 'github/branch-0.14' into fea-ext-comms
cjnolet May 13, 2020
46a27eb
Cleaning up
cjnolet May 13, 2020
fc6ba2e
Fixing python style
cjnolet May 13, 2020
842f533
Fixing cpp style
cjnolet May 13, 2020
43f0d69
Adding copyright headers
cjnolet May 13, 2020
ac6e699
Adding init py for tests
cjnolet May 13, 2020
c442d87
Adding license headers and consistent namespacing
cjnolet May 13, 2020
32e63c1
More cleanup
cjnolet May 13, 2020
d377347
Cleaning up raft.dask.common.Comms
cjnolet May 13, 2020
e1b4ea7
Ignoring raft egg artifacts
cjnolet May 13, 2020
736696b
Cleaning up raft dask utils
cjnolet May 13, 2020
55d9dfd
More cleanup, copyright headers, and docs
cjnolet May 13, 2020
6eb0325
Removing the last of references to cuml
cjnolet May 13, 2020
b65e20d
Fixing python style
cjnolet May 13, 2020
7a845cb
Fixing c++ style
cjnolet May 13, 2020
c269300
Updating changelog
cjnolet May 13, 2020
d4aa5c5
Testing non-ucx cluster for pytests
cjnolet May 13, 2020
1ee1363
Implementing review feedback
cjnolet May 18, 2020
c165a36
More review feedback
cjnolet May 19, 2020
12f3db7
Fixing style
cjnolet May 19, 2020
aae4625
FIX Use relative imports
dantegd May 19, 2020
bc39321
Adding compile-time templates for comms_t to make interaction more st…
cjnolet May 19, 2020
e9c0995
Merge pull request #1 from dantegd/fea-ext-comms-pr1
cjnolet May 19, 2020
3150fbd
Using std::this_thread::yield instead of pthread_yield()
cjnolet May 19, 2020
5628ad2
Adding python tests for collective functions
cjnolet May 19, 2020
488d0d5
Running cpp style
cjnolet May 19, 2020
3d362d0
Updating tabbing for pytests
cjnolet May 19, 2020
417a4bd
Following clang tidy standards
cjnolet May 19, 2020
cb92349
Moving get_type out of comms_t
cjnolet May 19, 2020
6e9025d
More review feedback
cjnolet May 26, 2020
28f8101
Running cpp style check
cjnolet May 26, 2020
1a18553
Nccl red op
cjnolet May 27, 2020
a22dd62
Raising an exception to get around gcc issue
cjnolet May 27, 2020
fbd12aa
Using static for functions for now
cjnolet May 27, 2020
cc71ccb
Fixing style
cjnolet May 27, 2020
b612c0b
DOC Update BUILD.md
dantegd May 27, 2020
dc123b2
Fixing more relative imports
cjnolet May 28, 2020
5efa9be
Spectral partition header.
aschaffer May 28, 2020
f405fee
Updated CHANGELOG.md.
aschaffer May 28, 2020
7399864
add RMM_INCLUDE and RMM_LIBRARY options to allow linking to non-conda…
trxcllnt Jun 2, 2020
7e99a33
changelog
trxcllnt Jun 2, 2020
c5bf538
Adding the main functionality.
aschaffer Jun 2, 2020
60597f3
final updates based on feedback
cjnolet Jun 3, 2020
a928468
copy error.hpp from cuDF, add license statement, and initial update
seunghwak Jun 3, 2020
328462f
add CUML_EXPECTS, CUML_FAIL, CUGRAPH_EXPECTS, and CUGRAPH_FAIL
seunghwak Jun 3, 2020
187e12a
add NCCL_TRY
seunghwak Jun 3, 2020
4ce8f37
fix compile/clang-tidy errors
seunghwak Jun 3, 2020
086abd3
fix an error in a comment
seunghwak Jun 3, 2020
5bbb8be
Merge branch 'branch-0.15' into fea-ext-comms
afender Jun 3, 2020
4f72257
add CUSPARSE_TRY
seunghwak Jun 3, 2020
314eb6b
Merge pull request #7 from cjnolet/fea-ext-comms
afender Jun 3, 2020
a428c6e
add CURAND_TRY
seunghwak Jun 3, 2020
b9cee2b
address clang-tidy warnings
seunghwak Jun 3, 2020
b373267
update change log
seunghwak Jun 3, 2020
54bdc8e
resolve error conflicts
seunghwak Jun 3, 2020
e471f1d
clang-format fixes
seunghwak Jun 3, 2020
035dc00
another try to make clang-format happy
seunghwak Jun 3, 2020
cc4be83
Clean-up of matrix definitions and dummy error handling.
aschaffer Jun 3, 2020
f3e8862
Clean-up of some error checking.
aschaffer Jun 3, 2020
56ddbb5
Pulling GraphCSRView from cugraph.
aschaffer Jun 3, 2020
f48552e
Merge pull request #13 from trxcllnt/fix/cmake-rmm-include
dantegd Jun 4, 2020
aa058ef
Matrix replacements for nvgraph Matrix types.
aschaffer Jun 4, 2020
61c669c
Refactoring of Lanczos algorithms (except AllocatableVector<T>). More…
aschaffer Jun 4, 2020
9d71cfc
LAPACK dependencies.
aschaffer Jun 4, 2020
f8455b9
Merge branch 'branch-0.15' of github.com:rapidsai/raft into fea_ext_e…
seunghwak Jun 5, 2020
22c9f49
Added allocation functionality via raft handle.
aschaffer Jun 5, 2020
0f3617b
Fixed allocator dependencies in Lanczos.
aschaffer Jun 5, 2020
ee3102b
Lapack dependencies.
aschaffer Jun 6, 2020
e00501a
add inline
Iroy30 Jun 8, 2020
77f78f6
remove print
Iroy30 Jun 8, 2020
3ee9654
remove destructor
Iroy30 Jun 9, 2020
aa81662
clang formatting
Iroy30 Jun 9, 2020
2487eb0
Merge pull request #17 from Iroy30/add_inline_destructor
afender Jun 9, 2020
b0c12aa
Added missing cusparse API.
aschaffer Jun 9, 2020
001eec8
Added cusparsesetpointermode.
aschaffer Jun 9, 2020
48e9d09
Added setpointer mode to cusparse, cublas and clang-formatted.
aschaffer Jun 9, 2020
e311c3e
Added sscal to cublas wrappers.
aschaffer Jun 9, 2020
022948a
Updated cublas calls in Lanczos (partially).
aschaffer Jun 10, 2020
2566b24
move common error handling utilities from cuda_utils.h to error.hpp
seunghwak Jun 10, 2020
43d3f78
Updated cublas depends. in Lanczos.
aschaffer Jun 10, 2020
e0d6cf6
Kmeans updates.
aschaffer Jun 10, 2020
3656125
update raft error classes to inherit raft::exception (instead of std:…
seunghwak Jun 10, 2020
0e62cea
move macros out from the raft namespace
seunghwak Jun 10, 2020
cca40ea
Update on kmeans and cleanup.
aschaffer Jun 10, 2020
55922cb
remove CUML(GRAPH)_EXPECTS(FAIL)
seunghwak Jun 11, 2020
acd5824
update RAFT_EXPECTS and RAFT_FAIL
seunghwak Jun 11, 2020
4a48b57
compile error fix (namespace)
seunghwak Jun 11, 2020
1709155
Updating partition entry calls.
aschaffer Jun 11, 2020
aa7d8ec
Updates on partition and matrix wrappers.
aschaffer Jun 11, 2020
059f1ec
minor fixes to RAFT_EXPECTS(FAIL)
seunghwak Jun 11, 2020
192000c
More partition clan-up. Added sm_utils.
aschaffer Jun 11, 2020
125911c
move error check macros from error.hpp to relevant headers
seunghwak Jun 11, 2020
d3192f4
clang-format
seunghwak Jun 11, 2020
ec0cf97
cosmetic updates
seunghwak Jun 11, 2020
f8f8d32
cosmetic updates
seunghwak Jun 11, 2020
c3f153d
stifle some warnings
seunghwak Jun 11, 2020
85c9b7d
clang-format error
seunghwak Jun 11, 2020
3361dc3
Update partition with eigen solver interface.
aschaffer Jun 11, 2020
0373a52
Format and some comments.
aschaffer Jun 11, 2020
308e893
Added generic cluster solvers. Partition clean-up.
aschaffer Jun 12, 2020
8fb1c04
Fixed tuple.
aschaffer Jun 12, 2020
25756ec
Modularity Maximization refactor. More cleanup in matrix wrappers and…
aschaffer Jun 12, 2020
531bf2b
More refactoring in partition/modularity analysis.
aschaffer Jun 13, 2020
1fb5ae2
set to OrderedDict
Iroy30 Jun 15, 2020
4fa1c76
Removed MPI dependency (for now).
aschaffer Jun 15, 2020
10496de
Fixed sparse matrix cnstr.
aschaffer Jun 15, 2020
38e5ca9
Added test for spectral matrix functionality. Compilation checker for…
aschaffer Jun 15, 2020
86dc155
Heart-beat tests for spectral matrices.
aschaffer Jun 15, 2020
f17e5f6
Merge pull request #22 from Iroy30/preserve_worker_order
BradReesWork Jun 15, 2020
5545543
Fixed lapack dependencies on dense cusolver.
aschaffer Jun 15, 2020
ab4e8a6
Added largest eigenvector heart-beat test.
aschaffer Jun 15, 2020
058aae7
Heart-beat for kmeans.
aschaffer Jun 15, 2020
6d9e392
fix unused location_prefix in error handling macro
seunghwak Jun 16, 2020
4ebc0af
remove NCCL_CHECK (replaced with NCCL_TRY)
seunghwak Jun 16, 2020
851b401
clang-format
seunghwak Jun 16, 2020
07a51a4
another clang format
seunghwak Jun 16, 2020
aad0a00
Merge pull request #15 from seunghwak/fea_ext_error
BradReesWork Jun 16, 2020
6103489
Adding higher level solvers to test: cluster solver interface.
aschaffer Jun 16, 2020
7be516e
Adding higher level solvers to test: eigen solver interface.
aschaffer Jun 16, 2020
9dee0b3
Adding higher level solvers to test: cluster solver interface (fixed).
aschaffer Jun 16, 2020
1d4c05d
Higher level API.
aschaffer Jun 16, 2020
4480dd3
Fixes in higher level API.
aschaffer Jun 16, 2020
282c4c9
Added / Fixed higher level modularity API and test.
aschaffer Jun 17, 2020
b67755c
TEST test for get_internal_streams
teju85 Jun 17, 2020
1367c11
FIX bug in handle_t::get_internal_streams
teju85 Jun 17, 2020
dbaec94
DOC update changelog
teju85 Jun 17, 2020
9c172f5
Merge pull request #25 from teju85/bug-ext-fix-duplicate-streams
cjnolet Jun 17, 2020
6211f8d
Addressed CUDA 11 API changes in cusparse (csrmv, csrmm).
aschaffer Jun 17, 2020
4097a72
Fixes in CUDA 11 cusparse interface.
aschaffer Jun 18, 2020
c4130c9
Added raft handle to sparse_matrix cnstr. necessary for mv() memf cal…
aschaffer Jun 18, 2020
87c4984
Sparse MV forking: pre-CUDA 11 step.
aschaffer Jun 18, 2020
c5f5ab5
add missing parenthesis
seunghwak Jun 18, 2020
105f626
add change log
seunghwak Jun 18, 2020
2225214
Added CUDA 11 path for SpMV calls. Step 2.
aschaffer Jun 18, 2020
7415eda
Removed constness of some parameters in SpMV, because CUDA 11 require…
aschaffer Jun 18, 2020
6114c0f
Added some pre-conditions in mv().
aschaffer Jun 19, 2020
3038c77
Merge pull request #26 from seunghwak/bug_ext_parenthesis
BradReesWork Jun 19, 2020
761cacd
Fixed curand dependencies.
aschaffer Jun 19, 2020
ca240be
More CUDA 11 debt.
aschaffer Jun 19, 2020
b40b702
Added correct version of L1 norm.
aschaffer Jun 19, 2020
2dad70d
Fixes for matrix wrappers and tests.
aschaffer Jun 20, 2020
3f5ec59
Fixed mv() for lapalacian matrix.
aschaffer Jun 20, 2020
ad36433
Fixed mv() for modularity matrix.
aschaffer Jun 20, 2020
8ea5582
Updated CHANGELOG.md.
aschaffer Jun 22, 2020
33c8e42
Merged latest branch-0.15.
aschaffer Jun 22, 2020
5474e99
Integrated raft error control from outer PR.
aschaffer Jun 22, 2020
4175819
Replaced buggy Thrust call with simplified logic.
aschaffer Jun 24, 2020
9fdf4d6
Removed useless graph.hpp dependency in spectral clustering.
aschaffer Jul 1, 2020
28e9d4a
Removed unnecessary graph.hpp.
aschaffer Jul 1, 2020
87f6315
Addressed code reviews on kmeans dox.
aschaffer Jul 6, 2020
98d7af6
Addressed code reviews on kmeans lowercase_t types.
aschaffer Jul 6, 2020
7c79256
Addressed code reviews on kmeans cudaMemcpyAsync().
aschaffer Jul 6, 2020
283fa0b
Addressed code reviews on kmeans use of dim3{} cnstr.
aschaffer Jul 6, 2020
4ff5068
Addressed code reviews on lowercase_t type names.
aschaffer Jul 6, 2020
ff5ad23
Addressed code reviews on replacing cudaDeviceSynchronize().
aschaffer Jul 6, 2020
8b30cda
Addressed comments on @brief in lanczos.
aschaffer Jul 7, 2020
8bf8589
Addressed comments on host memory pointers and constexpr one/zero.
aschaffer Jul 7, 2020
f30e636
Addressed comments on removing stale commented code.
aschaffer Jul 7, 2020
44ff8bf
Addressed comments on removing stale commented code.
aschaffer Jul 7, 2020
04e8790
Addressed comments on removing stale (fixed) FIXME comment.
aschaffer Jul 7, 2020
5de2234
Addressed comment on async copies.
aschaffer Jul 7, 2020
b21d5eb
Addressed comments on removing outdated TODOs.
aschaffer Jul 7, 2020
9df3f9a
Addressed comments on removing dead code.
aschaffer Jul 7, 2020
fb46b77
Addressed comments on using dim3{} cnstr.
aschaffer Jul 7, 2020
d359d1a
Addressed comments on using cleaning-up modularity header.
aschaffer Jul 7, 2020
798cc79
Addressed comments on cleaning-up spectral_util header.
aschaffer Jul 7, 2020
e5ef1a7
Addressed comments on cleaning-up cluster_solvers.cu.
aschaffer Jul 7, 2020
beaa499
Addressed comments on more clean-up in lanczos.
aschaffer Jul 7, 2020
52764ef
Addressed comments on dim3{} and type lowercase_t in spectral_util.
aschaffer Jul 7, 2020
e8fc0fb
Fixed duplicate in CHANGELOG.md.
aschaffer Jul 7, 2020
4b32a8b
Add ceildiv
kaatish Jul 8, 2020
6bb78f8
CHANGELOG fix
kaatish Jul 8, 2020
9433a4e
Clang format fix
kaatish Jul 8, 2020
d378ac2
Created integer utils
kaatish Jul 8, 2020
b122d50
Merge pull request #29 from kaatish/fea-ceildiv
BradReesWork Jul 9, 2020
aeb2e56
Moved lanczos.hpp to linalg.
aschaffer Jul 9, 2020
1502821
Moved sm_utils.hpp to utils.
aschaffer Jul 9, 2020
2b5a6cd
Fixed CHECK_CUDA() calls.
aschaffer Jul 9, 2020
e287350
Fixed CHECK_CUDA() redux.
aschaffer Jul 9, 2020
13aa96e
Addressed comments on in-place initializers and thrust exe policy dox.
aschaffer Jul 13, 2020
d513d21
Addressed comment on replacing 65535 by named constant.
aschaffer Jul 13, 2020
e16b9c4
Fixed a file inclusion style (use brackets) that was rejected in CI (…
aschaffer Jul 14, 2020
5b84170
update docker image
sean-frye Jul 14, 2020
56367bf
update CHANGELOG
sean-frye Jul 14, 2020
6391b63
Merge pull request #12 from aschaffer/fea_ext_raft_spectral
BradReesWork Jul 14, 2020
4848172
Merge pull request #34 from sean-frye/fix-local-docker
sean-frye Jul 14, 2020
9411e44
removing nccl.h from error.hpp
divyegala Jul 15, 2020
08a9fec
updating changelog
divyegala Jul 15, 2020
f54a119
Merge pull request #35 from divyegala/fix-nccl-header
cjnolet Jul 15, 2020
12f6e6b
removing cudart_utils include
divyegala Jul 20, 2020
6e4b632
updating Changelog
divyegala Jul 20, 2020
05d43d1
re-adding one
divyegala Jul 20, 2020
115c15a
Merge pull request #38 from divyegala/remove-cudart
afender Jul 21, 2020
82e2fc3
making handle and comms polymorphic
divyegala Jul 21, 2020
4a81232
updating changelog
divyegala Jul 21, 2020
6501c94
re-add include
divyegala Jul 21, 2020
bbbf470
Merge pull request #39 from divyegala/fea-poly
cjnolet Jul 21, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ log
.ipynb_checkpoints
.DS_Store
dask-worker-space/
*.egg-info/
## eclipse
.project
.cproject
Expand Down
4 changes: 1 addition & 3 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,7 @@ Using as an example developer working on cuML and RAFT, we recommend the followi

This will facilitate development, and the `RAFT_PATH` variable will make it so that the downstream repository, in this case cuML, builds using the locally cloned RAFT (as descrbed in the first step).

### Submitting PRs

If you are submitting changes to RAFT itself, without changing downstream repos, you can use the config file located in `ci/prtest.config` to trigger RAFT's CI to run tests of downstream repositories.
### Submitting PRs Guidelines

If you have changes to both RAFT and at least one downstream repo, then:

Expand Down
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# RAFT 0.15.0 (Date TBD)

## New Features
- PR #12: Spectral clustering.
- PR #7: Migrating cuml comms -> raft comms_t
- PR #15: add exception based error handling macros
- PR #29: Add ceildiv functionality

## Improvements
- PR #13: Add RMM_INCLUDE and RMM_LIBRARY options to allow linking to non-conda RMM
- PR #22: Preserve order in comms workers for rank initialization
- PR #38: Remove #include <cudart_utils.h> from `raft/mr/`
- PR #39: Adding a virtual destructor to `raft::handle_t` and `raft::comms::comms_t`

## Bug Fixes

- PR #17: Make destructor inline to avoid redeclaration error
- PR #25: Fix bug in handle_t::get_internal_streams
- PR #26: Fix bug in RAFT_EXPECTS (add parentheses surrounding cond)
- PR #34: Fix issue with incorrect docker image being used in local build script
- PR #35: Remove #include <nccl.h> from `raft/error.hpp`

# RAFT 0.14.0 (Date TBD)

Expand Down
5 changes: 4 additions & 1 deletion ci/local/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash

DOCKER_IMAGE="gpuci/rapidsai-base:cuda10.0-ubuntu16.04-gcc5-py3.6"
GIT_DESCRIBE_TAG=`git describe --tags`
MINOR_VERSION=`echo $GIT_DESCRIBE_TAG | grep -o -E '([0-9]+\.[0-9]+)'`

DOCKER_IMAGE="gpuci/rapidsai:${MINOR_VERSION}-cuda10.1-devel-ubuntu16.04-py3.7"
REPO_PATH=${PWD}
RAPIDS_DIR_IN_CONTAINER="/rapids"
CPP_BUILD_DIR="cuML/build"
Expand Down
32 changes: 28 additions & 4 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,24 @@ set(CMAKE_CUDA_FLAGS
# - dependencies -------------------------------------------------------------

include(cmake/Dependencies.cmake)
include(cmake/comms.cmake)

###################################################################################################
# - RMM -------------------------------------------------------------------------------------------

find_path(RMM_INCLUDE "rmm"
HINTS "$ENV{RMM_ROOT}/include")

find_library(RMM_LIBRARY "rmm"
HINTS "$ENV{RMM_ROOT}/lib" "$ENV{RMM_ROOT}/build")

message(STATUS "RMM: RMM_LIBRARY set to ${RMM_LIBRARY}")
message(STATUS "RMM: RMM_INCLUDE set to ${RMM_INCLUDE}")

add_library(rmm SHARED IMPORTED ${RMM_LIBRARY})
if(RMM_INCLUDE AND RMM_LIBRARY)
set_target_properties(rmm PROPERTIES IMPORTED_LOCATION ${RMM_LIBRARY})
endif(RMM_INCLUDE AND RMM_LIBRARY)

##############################################################################
# - include paths ------------------------------------------------------------
Expand All @@ -170,10 +188,11 @@ set(RAFT_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include CACHE STRING

set(RAFT_INCLUDE_DIRECTORIES
${RAFT_INCLUDE_DIR}
${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES})
${CMAKE_CUDA_TOOLKIT_INCLUDE_DIRECTORIES}
"${RMM_INCLUDE}")

if(DEFINED ENV{CONDA_PREFIX})
message(STATUS "Using RMM installation froM $ENV{CONDA_PREFIX}")
message(STATUS "Using RMM installation from $ENV{CONDA_PREFIX}")
list(APPEND RAFT_INCLUDE_DIRECTORIES $ENV{CONDA_PREFIX}/include)
endif(DEFINED ENV{CONDA_PREFIX})

Expand All @@ -185,9 +204,10 @@ set(RAFT_LINK_LIBRARIES
${CUDA_cusolver_LIBRARY}
${CUDA_CUDART_LIBRARY}
${CUDA_cusparse_LIBRARY}
${CUDA_curand_LIBRARY}
rmm)

set(RAFT_LINK_DIRECTORIES "")
set(RAFT_LINK_DIRECTORIES "${RMM_LIBRARY}")

if(DEFINED ENV{CONDA_PREFIX})
list(APPEND RAFT_LINK_DIRECTORIES $ENV{CONDA_PREFIX}/lib)
Expand All @@ -203,9 +223,13 @@ if(BUILD_RAFT_TESTS)
add_executable(test_raft
test/cudart_utils.cpp
test/handle.cpp
test/integer_utils.cpp
test/mr/device/buffer.cpp
test/mr/host/buffer.cpp
test/test.cpp)
test/test.cpp
test/spectral_matrix.cu
test/eigen_solvers.cu
test/cluster_solvers.cu)

target_include_directories(test_raft
PRIVATE
Expand Down
35 changes: 35 additions & 0 deletions cpp/cmake/comms.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Copyright (c) 2019-2020, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

cmake_minimum_required(VERSION 3.14 FATAL_ERROR)
project(comms LANGUAGES CXX CUDA)

if(NOT NCCL_PATH)
find_package(NCCL REQUIRED)
else()
message("-- Manually set NCCL PATH to ${NCCL_PATH}")
set(NCCL_INCLUDE_DIRS ${NCCL_PATH}/include)
set(NCCL_LIBRARIES ${NCCL_PATH}/lib/libnccl.so)
endif(NOT NCCL_PATH)

set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

find_package(UCX)
include_directories(${UCX_INCLUDE_DIRS})

include_directories( ${NCCL_INCLUDE_DIRS} )
list(APPEND RAFT_LINK_LIBRARIES ${NCCL_LIBRARIES})
Loading