Created attachment 585500 [details, diff] updated ebuild The nvidia-cuda-toolkit package (version 10.1.168) has few issues related to the profiler: - Some executable files outside of the bin directory are installed without the executable flag. - The make_wrapper for nvprof creates a wrapper that calls itself in an endless loop. To me, it seems, this wrapper is not needed at all. nvprof works when I just install the executable. - The wrapper scripts installed for nvvp and nsight do not forward command line arguments. The attached ebuild fixes these, should probably cleaned up slightly.
Tools like nvvp, nsight-sys, nsight-compute, etc, are not automatically in the PATH, and are not marked as executable (along with many related libraries). In the case of nvvp, there is also a path missing to LDPATH for the CUPTI libraries as well. On my machine I've manually set the executable bit and the tools work, but the ebuild needs to be fixed.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca72dce41454b63e96cec1fc1e4e34ea0b48a315 commit ca72dce41454b63e96cec1fc1e4e34ea0b48a315 Author: David Seifert <soap@gentoo.org> AuthorDate: 2020-12-27 20:08:56 +0000 Commit: David Seifert <soap@gentoo.org> CommitDate: 2020-12-27 20:08:56 +0000 dev-util/nvidia-cuda-toolkit: Version bump to 11.2.0 Bug: https://bugs.gentoo.org/691284 Bug: https://bugs.gentoo.org/749903 Bug: https://bugs.gentoo.org/760708 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org> dev-util/nvidia-cuda-toolkit/Manifest | 1 + ...da-toolkit-11.2.0-nsight-systems-launcher.patch | 12 + .../nvidia-cuda-toolkit-11.2.0.ebuild | 258 +++++++++++++++++++++ 3 files changed, 271 insertions(+)
I think this bug can be closed. In the latest version of the CUDA toolkit (currently 11.3) the profilers are working properly.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=951cad02c3ed832a9771f83e0f5956e3326261a0 commit 951cad02c3ed832a9771f83e0f5956e3326261a0 Author: Guilherme Amadio <amadio@gentoo.org> AuthorDate: 2021-11-09 15:58:35 +0000 Commit: Guilherme Amadio <amadio@gentoo.org> CommitDate: 2021-11-09 15:59:45 +0000 dev-util/nvidia-cuda-toolkit: mark more binaries as executables Bug: https://bugs.gentoo.org/691284 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Guilherme Amadio <amadio@gentoo.org> ...da-toolkit-11.5.0.ebuild => nvidia-cuda-toolkit-11.5.0-r1.ebuild} | 5 +++++ 1 file changed, 5 insertions(+)