rapidsai / raft

RAFT contains fundamental widely-used algorithms and primitives for machine learning and information retrieval. The algorithms are CUDA-accelerated and form building blocks for more easily writing high performance applications.
https://docs.rapids.ai/api/raft/stable/
Apache License 2.0
790 stars 194 forks source link

[QST] How to use RAFT installed by mamba? #2412

Open Wang-Zm opened 3 months ago

Wang-Zm commented 3 months ago

What is your question?

I have installed RAFT-C++ with mamba. Then I try to execute raft/cpp/template/build.sh to build the demo. But the following error reports:

CMake Error at CMakeLists.txt:19 (include):
  include could not find requested file:

    rapids-cmake

CMake Error at CMakeLists.txt:20 (include):
  include could not find requested file:

    rapids-cpm

CMake Error at CMakeLists.txt:21 (include):
  include could not find requested file:

    rapids-export

CMake Error at CMakeLists.txt:22 (include):
  include could not find requested file:

    rapids-find

Why does this happen? How can I compile and run a file which uses RAFT?

Thanks in advance!

wangzheng456123 commented 6 days ago

For my case, this error due to CMake failed to fetch RAPIDS.cmake from network, and the fetched file: raft/cpp/build/RAFT_RAPIDS-${RAPIDS_VERSION_MAJOR_MINOR}.cmake is empty so CMake in raft failed to do following build step. To solve this, I copy the content of https://raw.githubusercontent.com/rapidsai/rapids-cmake/branch-${RAPIDS_VERSION_MAJOR_MINOR}/RAPIDS.cmake to the empty fetched file and then the build step success.