-
Notifications
You must be signed in to change notification settings - Fork 49
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
Enable GCC Toolet 12 to support AVX VNNI #473
Conversation
Reviewer's Guide by SourceryThis PR enables AVX VNNI support by upgrading the GCC compiler to version 12 through the GCC toolset. The implementation modifies the build script to install and activate GCC toolset 12 specifically for CUDA builds. Sequence diagram for the build script modificationsequenceDiagram
participant Developer
participant BuildScript
participant System
Developer->>BuildScript: Modify script to include GCC toolset 12
BuildScript->>System: Install gcc-toolset-12
BuildScript->>System: Source /opt/rh/gcc-toolset-12/enable
System-->>BuildScript: GCC toolset 12 enabled
Class diagram for the build script changesclassDiagram
class BuildScript {
- rpm_list: Array
+ dnf_install(containerfile)
}
note for BuildScript "Added gcc-toolset-12 installation and sourcing for CUDA builds"
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
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.
Hey @nzwulfin - I've reviewed your changes - here's some feedback:
Overall Comments:
- Please add a brief comment in the script explaining that GCC 12 toolset is needed for AVX VNNI support
Here's what I looked at during the review
- 🟢 General issues: all looks good
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
You have to sign your commits git commit -a --amend -s |
Signed-off-by: Matt Micene <[email protected]>
Thanks @rhatdan, should be signed now. I don't need to update this PR right? |
@bmahabirbu PTAL |
Looks good! |
Fixes issue #471 based on a Red Hat KBase article (subscription required), to use AVX VNNI on platforms that support it a later version of binutils is needed.
This adds the GCC 12 Toolset and directly sources the environment vars into the build script.
There are also toolsets available for GCC 13 and 14 available if there's a need for more current versions. They should work the same way.
Summary by Sourcery
Build: