Add a BUILD file for makefile build.
PiperOrigin-RevId: 172933558
This commit is contained in:
parent
afd9224b3f
commit
b2dcbca94c
@ -400,6 +400,7 @@ filegroup(
|
||||
"//tensorflow/contrib/linear_optimizer:all_files",
|
||||
"//tensorflow/contrib/lookup:all_files",
|
||||
"//tensorflow/contrib/losses:all_files",
|
||||
"//tensorflow/contrib/makefile:all_files",
|
||||
"//tensorflow/contrib/meta_graph_transform:all_files",
|
||||
"//tensorflow/contrib/metrics:all_files",
|
||||
"//tensorflow/contrib/mpi_collectives:all_files",
|
||||
@ -513,6 +514,7 @@ filegroup(
|
||||
"//tensorflow/tools/api/golden:all_files",
|
||||
"//tensorflow/tools/api/lib:all_files",
|
||||
"//tensorflow/tools/api/tests:all_files",
|
||||
"//tensorflow/tools/benchmark:all_files",
|
||||
"//tensorflow/tools/build_info:all_files",
|
||||
"//tensorflow/tools/common:all_files",
|
||||
"//tensorflow/tools/compatibility:all_files",
|
||||
|
31
tensorflow/contrib/makefile/BUILD
Normal file
31
tensorflow/contrib/makefile/BUILD
Normal file
@ -0,0 +1,31 @@
|
||||
# Necessary build rules for makefile build in our CI.
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
package(default_visibility = ["//visibility:private"])
|
||||
|
||||
filegroup(
|
||||
name = "all_files",
|
||||
srcs = glob(
|
||||
["**/*"],
|
||||
exclude = ["**/OWNERS"],
|
||||
),
|
||||
visibility = ["//tensorflow:__subpackages__"],
|
||||
)
|
||||
|
||||
sh_test(
|
||||
name = "build_all_linux",
|
||||
size = "enormous",
|
||||
srcs = ["build_all_linux.sh"],
|
||||
data = [
|
||||
"//tensorflow:all_opensource_files",
|
||||
"//third_party/eigen3:all_files",
|
||||
"//third_party/fft2d:all_files",
|
||||
],
|
||||
tags = [
|
||||
"manual",
|
||||
"no_gpu",
|
||||
"no_oss",
|
||||
"notap",
|
||||
],
|
||||
)
|
@ -14,7 +14,7 @@
|
||||
# Host compilation settings
|
||||
|
||||
# Find where we're running from, so we can store generated files here.
|
||||
MAKEFILE_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
MAKEFILE_DIR ?= $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
|
||||
HAS_GEN_HOST_PROTOC := \
|
||||
$(shell test -f $(MAKEFILE_DIR)/gen/protobuf-host/bin/protoc && echo "true" ||\
|
||||
echo "false")
|
||||
@ -71,6 +71,7 @@ HOST_LDOPTS += -L/usr/local/lib
|
||||
|
||||
HOST_INCLUDES := \
|
||||
-I. \
|
||||
-I$(MAKEFILE_DIR)/../../../ \
|
||||
-I$(MAKEFILE_DIR)/downloads/ \
|
||||
-I$(MAKEFILE_DIR)/downloads/eigen \
|
||||
-I$(MAKEFILE_DIR)/downloads/gemmlowp \
|
||||
|
@ -44,4 +44,5 @@ tensorflow/contrib/makefile/compile_linux_protobuf.sh
|
||||
# Build TensorFlow.
|
||||
make -j"${JOB_COUNT}" -f tensorflow/contrib/makefile/Makefile \
|
||||
OPTFLAGS="-O3 -march=native" \
|
||||
HOST_CXXFLAGS="--std=c++11 -march=native"
|
||||
HOST_CXXFLAGS="--std=c++11 -march=native" \
|
||||
MAKEFILE_DIR=$SCRIPT_DIR
|
||||
|
@ -2700,10 +2700,7 @@ tf_py_test(
|
||||
"//tensorflow/python:variables",
|
||||
],
|
||||
shard_count = 3,
|
||||
tags = [
|
||||
"no_windows_gpu",
|
||||
"nozapfhahn",
|
||||
],
|
||||
tags = ["no_windows_gpu"],
|
||||
)
|
||||
|
||||
tf_py_test(
|
||||
|
@ -89,3 +89,12 @@ tf_cc_binary(
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [":benchmark_model_lib"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all_files",
|
||||
srcs = glob(
|
||||
["**/*"],
|
||||
exclude = ["**/OWNERS"],
|
||||
),
|
||||
visibility = ["//tensorflow:__subpackages__"],
|
||||
)
|
||||
|
9
third_party/eigen3/BUILD
vendored
9
third_party/eigen3/BUILD
vendored
@ -38,3 +38,12 @@ cc_library(
|
||||
"@local_config_sycl//sycl:sycl",
|
||||
],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all_files",
|
||||
srcs = glob(
|
||||
["**/*"],
|
||||
exclude = ["**/OWNERS"],
|
||||
),
|
||||
visibility = ["//tensorflow:__subpackages__"],
|
||||
)
|
||||
|
9
third_party/fft2d/BUILD
vendored
9
third_party/fft2d/BUILD
vendored
@ -28,3 +28,12 @@ filegroup(
|
||||
name = "fft2d_headers_srcs",
|
||||
srcs = ["fft.h"],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "all_files",
|
||||
srcs = glob(
|
||||
["**/*"],
|
||||
exclude = ["**/OWNERS"],
|
||||
),
|
||||
visibility = ["//tensorflow:__subpackages__"],
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user