-
Notifications
You must be signed in to change notification settings - Fork 539
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
[BUG] cannot use local RAFT in get_raft.cmake for building cuML this support is broken #3972
Comments
@mdoijade CPM should be doing this for you, but as a work around you can configure your local copy of RAFT then use its build dir as the
|
@mdoijade looking at it again, I think your path to the RAFT source is wrong. It should be the path to the
|
@trxcllnt I am getting same error as reported in description with "-D CPM_raft_SOURCE=/data/devtech_compute/raft/cpp". |
@mdoijade I'm having trouble reproducing the issue when using the CMake variable and the path to RAFT's cpp folder as Paul suggested, for example: (ns0621) ➜ build git:(branch-21.08) ✗ pwd
/home/galahad/RAPIDS/21.08/cuml/fix-raftpath/cpp/build
(ns0621) ➜ build git:(branch-21.08) ✗ cmake .. -DCMAKE_CUDA_ARCHITECTURES="NATIVE" -DCPM_raft_SOURCE=/home/galahad/RAPIDS/21.08/cuml/raft/cpp
-- The CXX compiler identification is GNU 9.3.0
-- The CUDA compiler identification is NVIDIA 11.2.152
...
-- CPM: adding package raft@ (/home/galahad/RAPIDS/21.08/cuml/raft/cpp)
-- RAFT: No CMAKE_INSTALL_PREFIX argument detected, setting to: /home/galahad/miniconda3/envs/ns0621
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
...
-- Generating done
-- Build files have been written to: /home/galahad/RAPIDS/21.08/cuml/fix-raftpath/cpp/build can you try using the variable from the command line like the above, clearing the |
This issue has been labeled |
Describe the bug
I am adding this
set(CPM_raft_SOURCE "/data/devtech_compute/raft")
inget_raft.cmake
as per the comment in it but it fails in cmake configure with error below.CMake Error at CMakeLists.txt:356 (add_library):
Target "cuml" links to target "raft::raft" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
CMake Error at CMakeLists.txt:211 (add_library):
Target "cuml++" links to target "raft::raft" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
CMake Error at test/CMakeLists.txt:149 (add_executable):
Target "prims" links to target "raft::raft" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
CMake Error at test/CMakeLists.txt:149 (add_executable):
Target "prims" links to target "raft::raft" but the target was not found.
Perhaps a find_package() call is missing for an IMPORTED target, or an
ALIAS target is missing?
Steps/Code to reproduce bug
set(CPM_raft_SOURCE "/path/to/your_raft") in get_raft.cmake and perform cmake as below
cmake -DCMAKE_INSTALL_PREFIX=. -DCMAKE_CUDA_ARCHITECTURES=NATIVE ../cpp
Expected behavior
cmake should enable using RAFT from given local dir
Environment details (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: