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

[QST]: How to get all the headers to compile a c++ program using libcugraph? #4902

Open
2 tasks done
RPGillespie6 opened this issue Jan 30, 2025 · 1 comment
Open
2 tasks done
Labels
question Further information is requested

Comments

@RPGillespie6
Copy link

What is your question?

I'm trying to to build a sample c++ program that uses #include <cugraph/algorithms.hpp> to invoke cugraph::sssp.

If I do pip install cugraph, I see that a copy of libcugraph.so is shipped in site-packages/cugraph, however, it appears all the headers are missing.

I tried to hunt down all the headers, but it just keeps ballooning. So far I've copied headers from:

https://github.com/rapidsai/cugraph/tree/v24.06.01/cpp/include
https://github.com/rapidsai/raft/tree/v24.06.00/cpp/include
https://github.com/rapidsai/rmm/tree/v24.06.00/include

But now gcc is complaining about spdlog, fmt, and others. Apologies if this is the wrong place to ask, but what's the recommended/easiest way to get all the cugraph headers so I can compile a c++ program?

I'm willing to update the docs here with more info on how to build cpp programs: https://github.com/rapidsai/cugraph/blob/branch-22.12/cpp/docs/DEVELOPER_GUIDE.md

Code of Conduct

  • I agree to follow cuGraph's Code of Conduct
  • I have searched the open issues and have found no duplicates for this question
@RPGillespie6 RPGillespie6 added the question Further information is requested label Jan 30, 2025
@ChuckHastings
Copy link
Collaborator

I don't believe that our pip installation includes the C++ header files. Can you use conda instead? https://docs.rapids.ai/install/ provides general information for installing RAPIDS projects. If you create a conda environment and install cugraph, it should contain the library and the header.

Alternatively, you can use a development container. The link above contains information for those as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants