-
Notifications
You must be signed in to change notification settings - Fork 6.7k
dataflow: new minimal gpu samples #6096
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
Merged
leahecole
merged 114 commits into
GoogleCloudPlatform:master
from
davidcavazos:dataflow-gpu
Jul 13, 2021
Merged
Changes from 11 commits
Commits
Show all changes
114 commits
Select commit
Hold shift + click to select a range
f2bacd1
dataflow: minimal gpu examples
7bb9e48
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
d8bba19
added tests
2ebd8b7
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
ed2d91d
update dockerignore and cloudignore
7969369
remove old config
d34a2ca
update header year
193ce0e
removed unused import
abcbaae
add test
f6af338
make image name unique
ba72e54
fix image name
ec4bcde
fix resource name issues
a9dd1bc
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
d24fbf9
fix lint issues
d0593cb
fix underscore_name
07a4b44
wait for jobs
17258d4
fix test requirements
bea1b05
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
dabb8ff
fix image prefix
ffa0476
get job status for wait
07d1395
use correct region
6c87851
make jobs list not region dependent
e54accd
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
0d76f0b
use uuid for image tags
ab9d039
update title
3781636
fix run command
f1bd64e
remove region from job get call
6e3a4f6
launch jobs from fixtures
b66bf1e
fix resource names
45ba754
use unique images
108f932
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
c452cc4
fix lint issues
67fa556
pass --no-source when running the job
7aabf8b
more logging and changed region
5f58ba7
simplified type hints
c59bbe6
get all jobs and update wait job status
9ae84e7
update header years
9532073
tune logging
10214b5
fix tests
41501a9
made logging more explicit
3c68838
use disk_size_gb
2081cad
use larger disk_size_gb for landsat
2901e8a
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
314ffbd
list all jobs
83de548
wait before querying
c1ee4e9
include python version on resource names
d0c4533
update beam version
8a10eb2
use 30m timeout
35775b1
more debugging and increase waiting time
9484ce9
update bq query
d94d688
use shorter flag name alias
1887870
made logs clearer
afdfa0f
fix typo
8d50016
add more logging
5880ce9
wait longer for table to be created
68d3ad5
remove spurious f-string
958a56a
add disk size
1f47a92
updated beam version
84759a4
add comments
d119688
add missing fixture
fe197ae
decrease waiting time
303e009
increase waiting time
748345f
provide staging location
226d642
drain before cancel
ba1caa7
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
16e5d8e
adjust wait time
aa29c54
adjust timeout
57eb9ab
adjust timeout
3104e63
improve error messages
60372bb
small refactorings
11b67ba
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
688865f
add missing fixture
230fa94
updated timeout
c7c6aa4
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
a341327
containerize gpu tests
8fd496c
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
33a9f09
remove unused import
d9f776a
reverted streaming-beam changes
f9608fc
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
25303ee
updated image versions
568e9fe
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
fdb2610
restore old sample to avoid breaking docs
52ad071
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
5fc27b4
update copyright year
1f005ae
fix lint issues
ea83446
renamed test file
83622c0
update beam version
a8ba462
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
3765572
renamed test files
2c837c9
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
16f207b
adjust to conftest behaving differently with tests in current directory
d116333
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
51fdb72
moved new samples to another directory
0ec23ca
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
50f3d44
simplified instructions
9763997
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
085feeb
add gcloudignore to reduce test time
85d4305
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
cb6ee04
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
dccd745
reset gpu-workers entirely
cfd2d6b
Merge branch 'master' into dataflow-gpu
b1845a2
Merge branch 'master' into dataflow-gpu
7ccbdca
test in a single Python version
b658904
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
5142c9e
run subprocess as daemon
7caca19
update beam version
ac98d54
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
e687681
install g++ to compile google-cloud-profiler
9c11b46
fix build dependencies
cb5b4dd
fix build dependencies
a503021
fix build dependencies
0c8c2c1
adjust timeout
5199b36
Merge branch 'master' of github.com:GoogleCloudPlatform/python-docs-s…
1d287e1
Merge branch 'master' into dataflow-gpu
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Ignore everything except the source files. | ||
| **/* | ||
| !Dockerfile | ||
| !requirements.txt | ||
| !*.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Ignore everything except the source files. | ||
| **/* | ||
| !Dockerfile | ||
| !requirements.txt | ||
| !*.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright 2021 Google LLC | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| FROM pytorch/pytorch:1.8.1-cuda11.1-cudnn8-runtime | ||
|
|
||
| WORKDIR /pipeline | ||
|
|
||
| # Copy the Apache Beam worker files and the pipeline source files. | ||
| COPY --from=apache/beam_python3.8_sdk:2.29.0 /opt/apache/beam /opt/apache/beam | ||
| COPY requirements.txt . | ||
| COPY *.py ./ | ||
|
|
||
| # Install the pipeline requirements and check that there are no conflicts. | ||
| RUN pip install --no-cache-dir --upgrade pip \ | ||
davidcavazos marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| && pip install --no-cache-dir -r requirements.txt \ | ||
davidcavazos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| && pip check | ||
|
|
||
| # Set the entrypoint to Apache Beam SDK worker launcher. | ||
| ENTRYPOINT [ "/opt/apache/beam/boot" ] | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.