提交 c3cc395e 编写于 作者: A A. Unique TensorFlower 提交者: TensorFlower Gardener

Use /usertools/cpu.bazelrc for TSL presubmit build

Without this additional bazelrc file TSL will be built with the system compiler which happens to be GCC.

PiperOrigin-RevId: 565060297
上级 44400f85
......@@ -555,6 +555,7 @@ build:release_cpu_linux --crosstool_top="@sigbuild-r2.14-clang_config_cuda//cros
# offset of in the current version of ubp.
# See https://github.com/protocolbuffers/upb/blob/9effcbcb27f0a665f9f345030188c0b291e32482/upb/upb.c#L183.
build:release_cpu_linux --copt=-Wno-gnu-offsetof-extensions
build:release_cpu_linux --copt=-Wno-error=array-parameter
# Set lld as the linker.
build:release_cpu_linux --linkopt="-fuse-ld=lld"
build:release_cpu_linux --linkopt="-lm"
......
......@@ -555,6 +555,7 @@ build:release_cpu_linux --crosstool_top="@sigbuild-r2.14-clang_config_cuda//cros
# offset of in the current version of ubp.
# See https://github.com/protocolbuffers/upb/blob/9effcbcb27f0a665f9f345030188c0b291e32482/upb/upb.c#L183.
build:release_cpu_linux --copt=-Wno-gnu-offsetof-extensions
build:release_cpu_linux --copt=-Wno-error=array-parameter
# Set lld as the linker.
build:release_cpu_linux --linkopt="-fuse-ld=lld"
build:release_cpu_linux --linkopt="-lm"
......
......@@ -555,6 +555,7 @@ build:release_cpu_linux --crosstool_top="@sigbuild-r2.14-clang_config_cuda//cros
# offset of in the current version of ubp.
# See https://github.com/protocolbuffers/upb/blob/9effcbcb27f0a665f9f345030188c0b291e32482/upb/upb.c#L183.
build:release_cpu_linux --copt=-Wno-gnu-offsetof-extensions
build:release_cpu_linux --copt=-Wno-error=array-parameter
# Set lld as the linker.
build:release_cpu_linux --linkopt="-fuse-ld=lld"
build:release_cpu_linux --linkopt="-lm"
......
......@@ -48,7 +48,7 @@ docker run --name tsl -w /tf/tsl -itd --rm \
bash
# Build TSL
docker exec tsl bazel build \
docker exec tsl bazel --bazelrc=/usertools/cpu.bazelrc build \
--output_filter="" \
--keep_going \
--build_tag_filters=$TAGS_FILTER \
......@@ -58,7 +58,7 @@ docker exec tsl bazel build \
-- //tsl/...
# Test TSL
docker exec tsl bazel test \
docker exec tsl bazel --bazelrc=/usertools/cpu.bazelrc test \
--output_filter="" \
--keep_going \
--flaky_test_attempts=3 \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册