Skip to content
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

Move processing unit specific flags to MPIJobSpec #85

Merged
merged 2 commits into from
Jan 21, 2019
Merged

Move processing unit specific flags to MPIJobSpec #85

merged 2 commits into from
Jan 21, 2019

Conversation

terrytangyuan
Copy link
Member

@terrytangyuan terrytangyuan commented Jan 20, 2019

Per discussion in #75 (comment), we decided to move the flags to MPIJobSpec so they are more user-friendly. These flags are marked as deprecated for now and we can remove them for next major release.


This change is Reviewable

// TODO (terrytangyuan): Remove these flags from main.go for next major release
// and update deploy/*.yaml
if mpiJob.Spec.GPUsPerNode != nil {
c.gpusPerNode = int(*mpiJob.Spec.GPUsPerNode)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means an individual job spec may change the state of the controller. Wouldn't that cause problems if you have two jobs specifying two different values of gpusPerNode?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch! Fixed in e7f376a.

@rongou
Copy link
Member

rongou commented Jan 21, 2019

/lgtm
/approve

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rongou

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit c3f672d into kubeflow:master Jan 21, 2019
@terrytangyuan terrytangyuan deleted the deprecate-flags branch January 21, 2019 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants