File tree 3 files changed +6
-1
lines changed
3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 36
36
37
37
BUILD_STRATEGY=" standalone"
38
38
if [[ " $XLA_SANDBOX_BUILD " == " 1" ]]; then
39
- BUILD_STRATEGY=" sandboxed --sandbox_tmpfs_path=/tmp "
39
+ BUILD_STRATEGY=" sandboxed --sandbox_base=/dev/shm "
40
40
else
41
41
# We can remove this after https://github.com/bazelbuild/bazel/issues/15359 is resolved
42
42
unset CC
Original file line number Diff line number Diff line change @@ -75,6 +75,9 @@ RUN cd third_party/tensorflow && find ../../tf_patches -name '*.diff' | xargs -t
75
75
76
76
COPY build_torch_xla_libs.sh .
77
77
78
+ # TODO: Remove this when it's not required anymore
79
+ ENV XLA_SANDBOX_BUILD=1
80
+
78
81
ARG tpuvm
79
82
ARG tf_cuda_compute_capabilities
80
83
ARG bazel_jobs
Original file line number Diff line number Diff line change 18
18
19
19
args=(${_BUILD_ARGS//,/ })
20
20
flags=(
21
+ --shm-size=${_SHM_SIZE}
21
22
--build-arg=bazel_jobs=${_BAZEL_JOBS}
22
23
--build-arg=python_version=${_PYTHON_VERSION}
23
24
# TODO: use current version in setup.py
@@ -125,6 +126,7 @@ substitutions:
125
126
_CACHE : ' true'
126
127
_CACHE_TTL : ' 18h'
127
128
_BUILD_ARGS : tpuvm=1,cuda=0
129
+ _SHM_SIZE : ' 16gb'
128
130
options :
129
131
# To run in a test project, either point to your pool or replace this with
130
132
# `machineType`. You may have to reduce _BAZEL_JOBS.
You can’t perform that action at this time.
0 commit comments