File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 2525PROJECT = os .environ ["GOOGLE_CLOUD_PROJECT" ]
2626BUCKET_NAME = f"dataflow-gpu-test-{ SUFFIX } "
2727IMAGE_NAME = f"gcr.io/{ PROJECT } /dataflow/gpu-workers/test-{ SUFFIX } :latest"
28+ REGION = "us-central1"
29+ ZONE = "us-central1-f"
2830
2931
3032@pytest .fixture (scope = "session" )
@@ -109,20 +111,18 @@ def test_python_version(image_name: str, configure_docker: None) -> None:
109111def test_end_to_end (bucket_name : str , image_name : str ) -> None :
110112 # Run the Beam pipeline in Dataflow making sure GPUs are used.
111113 gpu_type = "nvidia-tesla-t4"
112- region = "us-central1"
113- worker_zone = "us-central1-a"
114114 subprocess .run (
115115 [
116116 "python" ,
117117 "landsat_view.py" ,
118118 f"--output-path-prefix=gs://{ bucket_name } /outputs/" ,
119119 "--runner=DataflowRunner" ,
120120 f"--project={ PROJECT } " ,
121- f"--region={ region } " ,
121+ f"--region={ REGION } " ,
122122 f"--temp_location=gs://{ bucket_name } /temp" ,
123123 "--worker_machine_type=custom-1-13312-ext" ,
124124 f"--worker_harness_container_image={ image_name } " ,
125- f"--worker_zone={ worker_zone } " ,
125+ f"--worker_zone={ ZONE } " ,
126126 f"--experiments=worker_accelerator=type={ gpu_type } ,count=1,install-nvidia-driver" ,
127127 "--experiments=use_runner_v2" ,
128128 ],
You can’t perform that action at this time.
0 commit comments