[BUG] Clean Up #include
Dependencies
#3376
Labels
bug
Something isn't working
Build or Dep
Issues related to building the code or dependencies
CUDA / C++
CUDA issue
Tech Debt
Issues related to debt
Discovered in PR #3367, there are dependencies to
cpp/src
from the include folder, C-API, prims, tests, benchmark, etc. which causes issues when determining cmakePUBLIC
interface includes forlibcuml++
. Due to this dependency,cpp/src
needs to be listed asPUBLIC
, implying it would be installed into theinclude
directory on a system. Since this does not happen, any dependent cmake package or third party library will run into issues.A quick search shows that many of the issues are related to
#include <common/cumlHandle.hpp>
which resides incpp/src
. This file is included from:cpp/bench/sg/dataset.cuh
cpp/include/cuml/neighbors/knn.hpp
include
should not depend onsrc
cpp/src/dbscan/dbscan_api.cpp
cpp/test/prims/gram.cu
We should be able to remove this dependency with the addition of
raft::handle_t
.Additionally, it would be worthwhile to do the following optional but beneficial improvements:
This issue is related to (and partially blocks) issue #3375
The text was updated successfully, but these errors were encountered: