Navigation Menu

Skip to content
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.

Commit

Permalink
Document VH_TPU
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Mar 23, 2020
1 parent 4c19be7 commit b41c2b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions source/executions/envvar-config/index.rst
Expand Up @@ -27,3 +27,12 @@ By default, Valohai defines the following environment variables:

In your code, you can check if ``VH_JOB_ID`` exists to know if you are running on Valohai.


Special environment variables
-----------------------------

``VH_TPU``
For private environments where Google Cloud TPU is enabled, this environment variable will contain the GRPC endpoint(s)
of the allocated Cloud TPU(s), separated by spaces. This may be passed in as the argument for ``TPUClusterResolver``,
e.g. ``TPUClusterResolver(tpu=os.environ["VH_TPU"].split()).get_master()``or similar.
When TPUs are not enabled, this variable will not be set.

0 comments on commit b41c2b6

Please sign in to comment.