-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rocmPackages.rocgdb: Ensure build with AMDPGU support, plus various improvements #309654
Conversation
The currnt rocgdb package is built without amdgpu uspport (which requires the rocdbgapi library). Fix this, and do other improvements over the default configuration.
Fix the lincense information for ROCgdb. The appropriate license is GPL3 or above.
Thanks for the PR. I would appreciate if someone who is a user of / knows more about build resultsResult of 1 package built:
code reviewI am not a user of I cannot really tell why rocgdb depends on Some due diligence questions that come to mind would be: About the license informationI see that you have corrected the license for the package to GPLv3+.
What do you mean by that? Is the applicable license GPLv3+, because that is how GDB and the extensions by AMD are licensed, and the GPLv2 and BSD3 licenses are irrelevant because they apply to other components that live in the same repo, but are not built and therefore are not part of the build output? |
Hi, thanks for the review.
Those are valid questions! Here are some elements of response:
Basically: none. The other components that would be installed are usual GNU toolchain components (the
Most of those tools can’t really deal with rocm object codes anyway (no disassembler support for amdgcn), one would need to use The last element to discuss would be
It allows to debug code running on AMDGPU devices. Without that, ROCgdb can only debug code running on the CPU, so it is basically
I am not 100% of the licensing for all the code living in the binutils-gdb repo, but the GDB part (as well as the AMD extensions) are GPL3 or above:
This is consistent with the licensing information for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only glanced over the changes (never used rocgdb myself). That looks good to me
Description of changes
The current ROCgdb project is built without AMDGPU support. The current patch mostly aim at fixing this, plus other various improvements:
--program-prefix
configure option so thegdb
is installed asrocgdb
.make install-gdb
to avoid installing other unrelated components.I have tested the resulting
result/bin/rocgdb
against a gfx1031 card.I am aware there are quite a few changes here, I am happy splitting those patch further if needed.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.