Skip to content

dataflow: new minimal gpu samples - #6096

Merged
leahecole merged 114 commits into
GoogleCloudPlatform:masterfrom
davidcavazos:dataflow-gpu
Jul 13, 2021
Merged

dataflow: new minimal gpu samples#6096
leahecole merged 114 commits into
GoogleCloudPlatform:masterfrom
davidcavazos:dataflow-gpu

Conversation

@davidcavazos

@davidcavazosdavidcavazos commented Jun 7, 2021

Copy link
Copy Markdown

Description

  • Adds new minimal examples to use GPU with tensorflow and pytorch.
  • Simplifies the landsat sample with newer patterns.
  • Fixes some resource leaks due to uncaught errors in some fixture's teardown code.

Checklist

@davidcavazos
davidcavazos requested a review from a team as a code ownerJune 7, 2021 22:01
@product-auto-labelproduct-auto-labelBot added the samples Issues that are directly related to samples. label Jun 7, 2021
@google-clagoogle-claBot added the cla: yes This human has signed the Contributor License Agreement. label Jun 7, 2021
@snippet-bot

Copy link
Copy Markdown

No region tags are edited in this PR.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@davidcavazosdavidcavazos changed the title Dataflow gpudataflow: new minimal gpu samplesJun 7, 2021
@kurtisvg
kurtisvg marked this pull request as draft June 7, 2021 22:54
@kurtisvg

Copy link
Copy Markdown
Contributor

@davidcavazos Would you mind pinging me for review once you have the tests passing?

@product-auto-labelproduct-auto-labelBot added the api: dataflow Issues related to the Dataflow API. label Jun 8, 2021
Comment threaddataflow/gpu-workers/pytorch-minimal/README.md Outdated
Comment threaddataflow/gpu-workers/pytorch-minimal/README.md Outdated
Comment threaddataflow/gpu-workers/tensorflow-landsat/main.py Outdated
Comment threaddataflow/gpu-workers/tensorflow-landsat/run.yaml Outdated
Comment threaddataflow/gpu-workers/tensorflow-landsat/main.py Outdated
Comment threaddataflow/gpu-workers/pytorch-minimal/main.py Outdated
Comment threaddataflow/gpu-workers/pytorch-minimal/main.py
@davidcavazosdavidcavazos added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 30, 2021
@kokoro-teamkokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Jun 30, 2021
@davidcavazos

Copy link
Copy Markdown
Author

@leahecole@tvalentyn, tests are passing, this should be ready to merge if there are no more comments.

@leahecoleleahecole left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

David this is so so so close and also it's a really fantastic PR. When you're back, let's sit down for like 15 min and just knock out my questions. (I sent you an email about this too in case your inbox is gross from being OOO)

Comment threaddataflow/gpu-examples/conftest.py Outdated
Comment threaddataflow/gpu-examples/conftest.py Outdated
Comment threaddataflow/gpu-examples/conftest.py Outdated
Comment threaddataflow/gpu-examples/conftest.py Outdated
Comment threaddataflow/gpu-examples/pytorch-minimal/e2e_test.py Outdated
Comment threaddataflow/gpu-examples/pytorch-minimal/noxfile_config.py Outdated
Comment threaddataflow/gpu-examples/pytorch-minimal/run.yaml Outdated
@kurtisvgkurtisvg removed their assignment Jul 12, 2021
@davidcavazos

Copy link
Copy Markdown
Author

@leahecole the new Beam version depends on google-cloud-profiler which requires a C++ compiler and Python build tools in the container image. Also the newer PyTorch image is quite larger so I had to adjust the timeout for building the image.

All tests are passing again.

@leahecole
leahecole merged commit 7eb1e09 into GoogleCloudPlatform:masterJul 13, 2021
@leahecole

Copy link
Copy Markdown
Collaborator

Used admin merge just because second approver didn't have correct permissions, but they are a Dataflow expert.

@davidcavazos
davidcavazos deleted the dataflow-gpu branch July 13, 2021 20:53
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: dataflowIssues related to the Dataflow API.cla: yesThis human has signed the Contributor License Agreement.samplesIssues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@davidcavazos@kurtisvg@leahecole@tvalentyn@kokoro-team