File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 8888# This is causing issue when other libraries are trying to run tests using a GPU.
8989# See: https://www.tensorflow.org/guide/gpu#allowing_gpu_memory_growth
9090#
91+ # Note about `XLA_PYTHON_CLIENT_PREALLOCATE`. By default, JAX preallocates 90%
92+ # of the GPU memory which is causing issues when other libraries are trying to run
93+ # tests using a GPU.
94+ # See: https://jax.readthedocs.io/en/latest/gpu_memory_allocation.html
95+ #
9196# Note about `--hostname localhost` (b/158137436)
9297# hostname defaults to the container name which fails DNS name
9398# resolution with --net=none (required to keep tests hermetic). See details in bug.
@@ -98,6 +103,7 @@ docker run --rm -t --read-only --net=none \
98103 -e KAGGLE_DATA_PROXY_URL=http://127.0.0.1:8000 \
99104 -e KAGGLE_DATA_PROXY_PROJECT=test \
100105 -e TF_FORCE_GPU_ALLOW_GROWTH=true \
106+ -e XLA_PYTHON_CLIENT_PREALLOCATE=false \
101107 --hostname localhost \
102108 --shm-size=2g \
103109 -v $PWD :/input:ro -v /tmp/python-build/working:/working \
You can’t perform that action at this time.
0 commit comments