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

Add support for ParMETIS to local Dockerfile #1102

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

thvasilo
Copy link
Contributor

Issue #, if available:

Description of changes:

  • We add support for ParMETIS to the main local Dockerfile. This way we don't have to maintain two separate Dockerfiles.
  • Add an optional positional parameter to determine whether to include ParMETIS dependencies when building local image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@thvasilo thvasilo added the 0.4 label Nov 28, 2024
@thvasilo thvasilo requested a review from jalencato November 28, 2024 01:44
@thvasilo thvasilo self-assigned this Nov 28, 2024
docker/local/Dockerfile.local Show resolved Hide resolved
docker/local/Dockerfile.local Outdated Show resolved Hide resolved
@@ -1,4 +1,5 @@
ARG DEVICE=gpu
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you got any number about time to build the docker image here? I think a big burden here is that the time for building parmetis docker image will be too long, and also make the docker image itself too large.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ParMETIS dependencies are or added if requested by the user, the build time should be roughly the same as building the ParMETIS image using the specialized Dockerfile.

Could you clarify if there's a concern I'm missing here? I will add some measurements of build times for the images using the specialized Dockerfile vs. this one.

# Copy GraphStorm scripts and tools
COPY code/examples /graphstorm/examples
COPY code/inference_scripts /graphstorm/inference_scripts
COPY code/tools /graphstorm/tools
COPY code/training_scripts /graphstorm/training_scripts
COPY code/fetch_and_run.sh /graphstorm/fetch_and_run.sh
RUN chmod +x "/graphstorm/fetch_and_run.sh"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason we need to do this now?

@@ -33,6 +33,13 @@ else
DEVICE_TYPE="$4"
fi

# process argument 5: support for parmetis
if [ -z "$4" ]; then
USE_PARMETIS="false"
Copy link
Collaborator

Choose a reason for hiding this comment

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

We better to note the option here in the doc. We have changed the way to build docker image here.

@thvasilo thvasilo removed the 0.4 label Dec 10, 2024
@thvasilo
Copy link
Contributor Author

Removed 0.4 tag as we can merge this after the release, not urgent.

@thvasilo thvasilo added the 0.4.1 label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants