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 link nvcomp to c++ library/executable? #111

Open
TheophileChampion opened this issue Dec 18, 2024 · 1 comment
Open

[QST] How to link nvcomp to c++ library/executable? #111

TheophileChampion opened this issue Dec 18, 2024 · 1 comment
Labels
? - Needs Triage inactive-30d question Further information is requested

Comments

@TheophileChampion
Copy link

TheophileChampion commented Dec 18, 2024

How to link nvcomp to c++ library/executable?

I have tried to install nvcomp using pip as follows:
pip install nvidia-nvcomp-cu12==4.1.1.1

Then, I am trying to link to nvcomp by adding the following lines in my CMakeLists.txt:

include_directories(high_level_quickstart_example PRIVATE ${PROJECT_SOURCE_DIR}/${VENV_DIR}/lib/python3.12/site-packages/nvidia/nvcomp/include/)
link_directories(${PROJECT_SOURCE_DIR}/${VENV_DIR}/lib/python3.12/site-packages/nvidia/nvcomp/)
add_executable(high_level_quickstart_example benchmarks_cpp/test/high_level_quickstart_example.cpp)
target_link_libraries(high_level_quickstart_example PRIVATE nvcomp CUDA::cudart)

However, I when compling I get the following error:

/venv-benchmarks/lib/python3.12/site-packages/nvidia/nvcomp/include/nvcomp.h:17:10: fatal error: nvcomp_export.h: No such file or directory
   17 | #include "nvcomp/version.h"

I could not find any mention of this file anywhere. Similarly the file nvcomp_export.h is nowhere to be found...

Where can I find these files and why are they not included when installing with pip?

@TheophileChampion TheophileChampion added ? - Needs Triage question Further information is requested labels Dec 18, 2024
@TheophileChampion TheophileChampion changed the title [QST] [QST] How to link nvcomp to c++ library/executable? Dec 19, 2024
Copy link

This issue has been labeled inactive-30d due to no recent activity in the past 30 days. Please close this issue if no further response or action is needed. Otherwise, please respond with a comment indicating any updates or changes to the original issue and/or confirm this issue still needs to be addressed. This issue will be labeled inactive-90d if there is no activity in the next 60 days.

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

No branches or pull requests

1 participant