-
Notifications
You must be signed in to change notification settings - Fork 221
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
Support processing resource types other than GPU #75
Conversation
Hi @terrytangyuan. Thanks for your PR. I'm waiting for a kubeflow member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Per @everpeace, some users using no GPU would like to configure custom |
@terrytangyuan Hi, It's good to know you're working on the issue. Overall implementation looks good to me. If users request both gpus and cpus on each worker, mpi-operator should support customization of
Current implementation put So, I think mpi-operator should support customizability of
What do you think? |
@everpeace That makes sense. I'll expose @rongou Any comments on the second question regarding backwards compatibility? Perhaps since we just release 0.1.0, we should introduce these new parameters as optional and keep the original GPU specific parameters? |
Yeah just make it optional. |
@rongou This is ready for review. Though the assigned reviewers are both inactive and have been removed from |
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.
/lgtm
Overall looks good. But I think you need to update the CRD validation for the new fields: https://github.com/kubeflow/mpi-operator/blob/master/deploy/0-crd.yaml |
@rongou Thanks. Added validation in the last commit. |
required: | ||
- gpus | ||
- properties: | ||
processingUnits: |
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.
Should you also add a check for processingResourceType?
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.
That's part of main.go
as a flag since I thought it was more related to the cluster's spec where controller gets deployed along with processingUnitsPerNode
. The check is done as part of convertProcessingResourceType()
. Or maybe this is more MPIJob
user specific (if they want to specify custom resource) and I should move it to MPIJobSpec
?
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.
Oh right. Based on the experience with the gpusPerNode
flag, it seems easier for users to understand if we put the options in the CRD. Maybe take them out of the operator flag and just use the job spec?
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.
I’ll keep those flags for now for backwards compatibility and then add those fields in MPIJobSpec that overwrites the flags when specified. What do you think?
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.
OK, sounds good.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: everpeace, rongou, terrytangyuan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR adds support for other processing resource types other than NVIDIA GPU such as CPU.
This is still a work-in-progress but just wanted to open this earlier here for discussion. A couple of questions to discuss:
processingUnitsPerNode
andprocessingResourceType
good names to use?MPIJobSpec
,main.go
, andMPIJobController
?"nvidia.com/gpu"
a good default value forprocessingResourceType
?processingResourceType
is"cpu"
?This change is