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

make: Build KF images in parallel #6873

Conversation

apo-ger
Copy link
Contributor

@apo-ger apo-ger commented Jan 4, 2023

This PR addresses #6872

Currently there is a single build-all rule in the top-level Makefile under components/ dir that calls all sub-makefiles for building all KF images in a serial manner. This makes the whole process very time-consuming as we can't use the -j option of make to run jobs in parallel.

Changes to the top-level Makefile for building all KF images:

  • Create a single rule for each directory containing a sub-makefile
  • Have each directory rule as a dependency to the build-all rule in the central Makefile

This way every directory rule can run in parallel with other rules.

Similarly, the central makefile for building all the example-notebook-servers images calls each sub-Makefile for each of the notebook servers in a serial manner.

Changes to the central Makefile for building all notebook-server-images:

Signed-off-by: Apostolos Gerakaris apoger@arrikto.com

Currently there is a single build-all rule in the top-level Makefile
under components/ dir that calls all sub-makefiles for building all
images in a serial manner. This makes the whole proccess very time-consuming
as we can't use the "-j" option of make to run jobs in parallel.

Changes to the top-level Makefile for building all KF images:

- create a single rule for each directory containing a sub-makefile

- have each directory rule as a dependency to the build-all rule in the
  central Makefile

Similarly, the central makefile for building all the example-notebook-servers images
calls each sub-Makefile for each of the notebook servers in a serial manner.

Changes to the central Makefile for building all notebook-server-images:

- Split the single target rule into multiple rules which perform recursive make
  calls (sub-makefiles) to build all the notebook-server-images.

- Use the variable MAKE for recursive make commands instead of explicit 'make'
  command:
  - https://www.gnu.org/software/make/manual/html_node/MAKE-Variable.html#MAKE-Variable

Signed-off-by: Apostolos Gerakaris <apoger@arrikto.com>
@apo-ger apo-ger force-pushed the feature-apoger-build-kf-images-in-parallel branch from 8588d7e to 5c49763 Compare January 5, 2023 07:45
@kimwnasptd
Copy link
Member

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kimwnasptd

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

@google-oss-prow google-oss-prow bot merged commit 3b027f9 into kubeflow:master Jan 23, 2023
@kimwnasptd kimwnasptd deleted the feature-apoger-build-kf-images-in-parallel branch January 26, 2023 14:03
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.

None yet

2 participants