Skip to content

Commit

Permalink
Revert "Revert "Add gpu pool to test deployment and enable gpu in sam…
Browse files Browse the repository at this point in the history
…ple test (kubeflow#696)""

This reverts commit 4c2c52b.
  • Loading branch information
hongye-sun committed Feb 6, 2019
1 parent 9ebbaa3 commit 9c00859
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/presubmit-tests-with-pipeline-deployment.sh
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@ ${KUBEFLOW_SRC}/scripts/kfctl.sh init ${KFAPP} --platform ${PLATFORM} --project

cd ${KFAPP}
${KUBEFLOW_SRC}/scripts/kfctl.sh generate platform

## Add one gpu node for covering gpu sample
sed -i -e 's|gpu-pool-initialNodeCount:\s*0|gpu-pool-initialNodeCount: 1|g' ./gcp_config/cluster-kubeflow.yaml
sed -i -e 's|gpu-pool-max-nodes:\s*0|gpu-pool-max-nodes: 1|g' ./gcp_config/cluster-kubeflow.yaml
sed -i -e 's|gpu-pool-min-nodes:\s*0|gpu-pool-min-nodes: 1|g' ./gcp_config/cluster-kubeflow.yaml

${KUBEFLOW_SRC}/scripts/kfctl.sh apply platform
${KUBEFLOW_SRC}/scripts/kfctl.sh generate k8s

Expand Down
1 change: 1 addition & 0 deletions test/sample-test/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ if [ "$TEST_NAME" == 'tf-training' ]; then
sed -i -e "s|gcr.io/ml-pipeline/ml-pipeline-dataflow-tf-predict:\([a-zA-Z0-9_.-]\)\+|${DATAFLOW_PREDICT_IMAGE}|g" kubeflow-training-classification.py
sed -i -e "s|gcr.io/ml-pipeline/ml-pipeline-local-confusion-matrix:\([a-zA-Z0-9_.-]\)\+|${LOCAL_CONFUSIONMATRIX_IMAGE}|g" kubeflow-training-classification.py
fi
sed -i -e "s|use_gpu\s*=\s*False|use_gpu = True|g" kubeflow-training-classification.py

dsl-compile --py kubeflow-training-classification.py --output kubeflow-training-classification.tar.gz

Expand Down

0 comments on commit 9c00859

Please sign in to comment.