Add a BUILD file for makefile build.

PiperOrigin-RevId: 172933558
This commit is contained in:
Gunhan Gulsoy 2017-10-20 14:23:37 -07:00 committed by TensorFlower Gardener
parent afd9224b3f
commit b2dcbca94c
8 changed files with 65 additions and 6 deletions
tensorflow
BUILD
contrib/makefile
python/kernel_tests
tools/benchmark
third_party
eigen3
fft2d

View File

@ -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",

View 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",
],
)

View File

@ -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 \

View File

@ -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

View File

@ -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(

View File

@ -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__"],
)

View File

@ -38,3 +38,12 @@ cc_library(
"@local_config_sycl//sycl:sycl",
],
)
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = ["**/OWNERS"],
),
visibility = ["//tensorflow:__subpackages__"],
)

View File

@ -28,3 +28,12 @@ filegroup(
name = "fft2d_headers_srcs",
srcs = ["fft.h"],
)
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = ["**/OWNERS"],
),
visibility = ["//tensorflow:__subpackages__"],
)