-
Notifications
You must be signed in to change notification settings - Fork 50
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
NVTX v3 dynamic library segfaults during initialization on Windows #107
Comments
nvToolsExt.dll is deprecated as of NVTXv3. Work is in progress to create a replacement DLL for cross-language interoperability. We will keep you updated. |
I'm building my own version based on the code in this repository, it only happens to have the same name:
|
Thanks for your report. A fix for building with |
Any branch I could test, or isn't the work public yet? |
I've updated the |
Thanks. I'd love to try it out, but building for x86_64-w64-mingw32 now fails:
|
Thanks, that allows the build to succeed, and fixes the issue on Windows. Can you share the timeline for this to be part of a release? Or alternatively, how stable is the |
v3.1.1 will release very soon. I will reopen this ticket pending its publication. |
I'm using NVTX from Julia, so I compile NVTX into a shared library as documented in https://github.com/NVIDIA/NVTX?tab=readme-ov-file#other-languages. This works fine on most platforms, but on Windows (where we build our binaries using MinGW compilers) NVTX segfaults during initialization. This reproduces in C, so doesn't look like a Julia issue. I'm using msys2 on Window 11, with the compilers from the
mingw-w64-x86_64-toolchain
package.To generate
nvToolsExt.dll
, I do:To simulate what we do in Julia, I'm using the following simple loader:
$ cc -g loader.c -o loader && ./loader.exe zsh: segmentation fault ./loader.exe
GDB reveals it indeed fails during initialization:
x-ref JuliaGPU/NVTX.jl#37, also filed as NVIDIA bug 4262590.
The text was updated successfully, but these errors were encountered: