How to use cuda-gdb to debug code for a shared library dynamically loaded using dlopen?

Our CUDA code is built into shared libraries and loaded at runtime using dlopen. Are there ways to 1) debug such shared libraries with break points in cuda-gdb on command line 2) debug such shared libraries with Nsight Visual Studio Code Edition?

1 Like