Add Fractional GPU Support For G4#5369
Add Fractional GPU Support For G4#5369LAVEEN wants to merge 2 commits intoGoogleCloudPlatform:developfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the GPU definition module by incorporating support for fractional GPU units on G4 series instances. This change allows for more efficient and flexible allocation of GPU resources, particularly for workloads that do not require a full GPU, thereby optimizing cost and resource utilization within the infrastructure. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request aims to add fractional GPU support for G4 series machine types. However, the current implementation uses fractional values for the count attribute of the guest accelerator, which is incorrect. The Terraform provider for both GKE node pools and Compute Engine instances expects an integer for the number of physical GPUs. This will cause the deployment to fail.
Additionally, the pull request is missing a few key elements required by the project's contribution guidelines:
- The PR description does not explain how these changes were tested.
- The project's documentation, specifically
docs/gpu-support.md, has not been updated. The document incorrectly states that GPU automation is only supported for thea2machine family, while it now coversa2,a3,g2, andg4families.
This PR introduces a fracitonal GPU support For G4 Series.
Submission Checklist
NOTE: Community submissions can take up to 2 weeks to be reviewed.
Please take the following actions before submitting this pull request.