Fixed compilation with clang.
PiperOrigin-RevId: 167489081
This commit is contained in:
parent
07356b48e4
commit
15d233e330
@ -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",
|
||||
|
@ -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"
|
||||
|
@ -19,6 +19,7 @@ limitations under the License.
|
||||
#include <string>
|
||||
|
||||
#include "tensorflow/compiler/xla/statusor.h"
|
||||
#include "tensorflow/compiler/xla/types.h"
|
||||
|
||||
namespace xla {
|
||||
|
||||
|
@ -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",
|
||||
],
|
||||
)
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user