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

Broken libs when using NVTX #17

Open
qiUip opened this issue Jan 7, 2025 · 0 comments
Open

Broken libs when using NVTX #17

qiUip opened this issue Jan 7, 2025 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@qiUip
Copy link
Collaborator

qiUip commented Jan 7, 2025

Describe the issue:

There is a bug in configure.ac when using NVTX where the wrong library name, libnvToolsExt64_1 is trying to be linked. This breaks the linker and autotools ends up not being able to build (error for missing OpenSSL and not finding lime, mpfr etc. which we link).

There are two possible simple solutions. The first is removing 4 chars from the lib name, 64_1, which is, to our knowledge, not used in any system we are using. The second is the fact that in more modern versions of CUDA, NVTX has changed to a header-only library (for C/C++ at least) and we can just not link the lib at all as it is no longer needed.

I'm testing both options to make sure that they not only compile but that tracePush() and tracePop()` work and will then create a PR for our version and then upstream.

Code example:

Target platform:

Linux / UNIX based with Nvidia and when trying o use NVTX for tracing.

Configure options:

--enable-tracing=nvtx`  

Before the suggested fixes, the config.log showed `/usr/bin/ld: cannot find -lnvToolsExt64_1` and configure failed. Now it has compiled and awaiting verification.
@qiUip qiUip added the bug Something isn't working label Jan 7, 2025
@qiUip qiUip self-assigned this Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant