Skip to content

Commit

Permalink
Add gpu pool to test deployment and enable gpu in sample test (kubefl…
Browse files Browse the repository at this point in the history
…ow#696)

* add gpu pool to test deployment and enable gpu in sample test

* enable clean up
  • Loading branch information
hongye-sun authored and k8s-ci-robot committed Jan 25, 2019
1 parent edf9b54 commit 72a7de9
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
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
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 72a7de9

Please sign in to comment.