Running on GCP
This configuration is for running on the Google Cloud Platform. All steps here assume that the Cloud SDK is already installed (for macOS this may e.g. be done using Homebrew:
brew cask install google-cloud-sdk).
gcp-create.sh provides an easy way to create four GCP instances to be used with this configuration; simply run it from the
To later remove everything again run
gcp-destroy.sh from the
Starting and Stopping
Right after setup all instances should be stopped, but scripts
restart.sh provides easy ways of managing their state. Run them from the
start.sh will take care of linking the four instances together and starting a TensorFlow server on each in a
run.sh script provides a way to run a program on the four instances. Symlink to it from the
spdz directory and run it from there, e.g.:
spdz $ ./run.sh logistic-regression-simple/prediction.py
This script will copy the specified file to the input provider, run it, and pull back TensorBoard results to
tensorboard --logdir=/tmp/tensorboard on the local host to view them.
ps.sh can be used to verify that a server is running on each instance. Script
pull.sh will update the GitHub repository on each instance.