Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691284 - dev-util/nvidia-cuda-toolkit: profiler not usable due to binaries not marked as executable
Summary: dev-util/nvidia-cuda-toolkit: profiler not usable due to binaries not marked ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-02 08:57 UTC by David
Modified: 2021-11-09 15:59 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
updated ebuild (0001-Fix-executable-flags-and-wrappers-in-nvidia-cuda-too.patch,5.97 KB, patch)
2019-08-02 08:57 UTC, David
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David 2019-08-02 08:57:15 UTC
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.
Comment 1 Guilherme Amadio gentoo-dev 2020-07-08 08:16:58 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2020-12-27 20:09:15 UTC
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(+)
Comment 3 Guilherme Amadio gentoo-dev 2021-05-21 12:21:06 UTC
I think this bug can be closed. In the latest version of the CUDA toolkit (currently 11.3) the profilers are working properly.
Comment 4 Larry the Git Cow gentoo-dev 2021-11-09 15:59:57 UTC
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(+)