Fixed compilation with clang.

PiperOrigin-RevId: 167489081
This commit is contained in:
A. Unique TensorFlower 2017-09-04 05:36:53 -07:00 committed by TensorFlower Gardener
parent 07356b48e4
commit 15d233e330
5 changed files with 9 additions and 1 deletions

View File

@ -215,6 +215,7 @@ cc_library(
],
deps = [
"//tensorflow/compiler/xla:statusor",
"//tensorflow/compiler/xla:types",
"//tensorflow/compiler/xla:util",
"//tensorflow/core:lib",
"//tensorflow/core:test",

View File

@ -17,6 +17,7 @@ limitations under the License.
#include <cstdlib>
#include "tensorflow/compiler/xla/types.h"
#include "tensorflow/compiler/xla/util.h"
#include "tensorflow/core/lib/core/errors.h"
#include "tensorflow/core/lib/io/path.h"

View File

@ -19,6 +19,7 @@ limitations under the License.
#include <string>
#include "tensorflow/compiler/xla/statusor.h"
#include "tensorflow/compiler/xla/types.h"
namespace xla {

View File

@ -111,6 +111,11 @@ cc_binary(
deps = [
":replay_computation_library",
"//tensorflow/compiler/plugin/executor:plugin_lib",
# TODO: This dependency is a workaround for linking error with clang.
# Without it, linker complains about missing symbols from
# 'xla_device_launch_op'. This dependency should be propagated from
# plugin_lib instead, but no targets other than this break without it.
"//tensorflow/compiler/jit",
],
)

View File

@ -144,7 +144,7 @@ int RealMain(tensorflow::gtl::ArraySlice<char*> args,
int main(int argc, char** argv) {
// Flags
string fake_infeed_shape;
xla::string fake_infeed_shape;
bool use_fake_data = false;
const std::vector<tensorflow::Flag> flag_list = {
tensorflow::Flag("use_fake_data", &use_fake_data,