Try disabling os runtime tracing, i.e. specify --trace without osrt (e.g. nsys launch --trace=cuda,nvtx julia). There is a bug in 2023.2 with how RUNPATH interception works: I have opened a ticket and Nvidia have told me it will be fixed in the next release.