Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when building locally #658

Closed
solomatov opened this issue May 6, 2019 · 10 comments
Closed

Error when building locally #658

solomatov opened this issue May 6, 2019 · 10 comments

Comments

@solomatov
Copy link

Selected XLAC library
ln: failed to create symbolic link '/home/kostik/pytorch/xla/build/lib.linux-x86_64-2.7/libptxla.so' -> '': No such file or directory
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
PTXLA_LIB
linked by target "test_ptxla" in directory /home/kostik/pytorch/xla/test/cpp

-- Configuring incomplete, errors occurred!
See also "/home/kostik/pytorch/xla/test/cpp/build/CMakeFiles/CMakeOutput.log".
Failed to build tests: ['/home/kostik/pytorch/xla/test/cpp/run_tests.sh', '-B']

How can I work this around?

@dlibenzi
Copy link
Collaborator

dlibenzi commented May 6, 2019

Did you run python setup.py install from within an xla folder nested within the PyTorch one (where you built before)?
Can you show the content of the /home/kostik/pytorch/xla/build and /home/kostik/pytorch/xla/build/lib.linux-x86_64-2.7/libptxla.so folders?

@solomatov
Copy link
Author

Here's the content of the first dir:

/home/kostik/pytorch/xla/build
├── lib.linux-x86_64-2.7
│   ├── torch_xla
│   │   ├── __init__.py
│   │   └── lib
│   │       └── libxla_computation_client.so
│   ├── torch_xla_py
│   │   ├── data_parallel.py
│   │   ├── graph_saver.py
│   │   ├── __init__.py
│   │   ├── keyd_queue.py
│   │   ├── model_comparator.py
│   │   ├── parallel_loader.py
│   │   ├── utils.py
│   │   └── xla_model.py
│   └── _XLAC.so
└── temp.linux-x86_64-2.7
    └── torch_xla
        └── csrc
            ├── aten_xla_bridge.o
            ├── aten_xla_type_base.o
            ├── aten_xla_type.o
            ├── batch_norm.o
            ├── convert_ops.o
            ├── convolution.o
            ├── cross_replica_reduces.o
            ├── data_ops.o
            ├── debug_util.o
            ├── device.o
            ├── elementwise.o
            ├── helpers.o
            ├── init_python_bindings.o
            ├── ir_dump_util.o
            ├── ir.o
            ├── ir_util.o
            ├── lowering_context.o
            ├── matrix.o
            ├── nll_loss.o
            ├── op_by_op_executor.o
            ├── ops
            │   ├── adaptive_avg_pool2d.o
            │   ├── all.o
            │   ├── any.o
            │   ├── arg_max.o
            │   ├── arg_min.o
            │   ├── arithmetic_ir_ops.o
            │   ├── as_strided.o
            │   ├── avg_pool_nd_backward.o
            │   ├── avg_pool_nd.o
            │   ├── batch_norm_forward.o
            │   ├── bitwise_ir_ops.o
            │   ├── cast.o
            │   ├── cat.o
            │   ├── cholesky.o
            │   ├── constant.o
            │   ├── constant_pad_nd.o
            │   ├── conv2d_backward.o
            │   ├── conv2d.o
            │   ├── conv_transpose2d_backward.o
            │   ├── conv_transpose2d.o
            │   ├── cross_replica_sum.o
            │   ├── cumprod.o
            │   ├── cumsum.o
            │   ├── device_data.o
            │   ├── diagonal.o
            │   ├── dropout.o
            │   ├── einsum.o
            │   ├── expand.o
            │   ├── flip.o
            │   ├── gather.o
            │   ├── generic.o
            │   ├── generic_slice.o
            │   ├── hardshrink.o
            │   ├── hardtanh_backward.o
            │   ├── index_get.o
            │   ├── index_ops.o
            │   ├── index_put.o
            │   ├── index_select.o
            │   ├── infer_output_shape.o
            │   ├── kth_value.o
            │   ├── leaky_relu_backward.o
            │   ├── leaky_relu.o
            │   ├── log_softmax_backward.o
            │   ├── log_softmax.o
            │   ├── masked_fill.o
            │   ├── max_pool_nd_backward.o
            │   ├── max_pool_nd.o
            │   ├── mean.o
            │   ├── native_batch_norm_backward.o
            │   ├── native_batch_norm_forward.o
            │   ├── not_supported.o
            │   ├── ops.o
            │   ├── permute.o
            │   ├── prod.o
            │   ├── qr.o
            │   ├── randperm.o
            │   ├── repeat.o
            │   ├── scalar.o
            │   ├── scatter.o
            │   ├── select.o
            │   ├── shrink_backward.o
            │   ├── softmax_backward.o
            │   ├── softmax.o
            │   ├── softshrink.o
            │   ├── split.o
            │   ├── squeeze.o
            │   ├── stack.o
            │   ├── sum.o
            │   ├── svd.o
            │   ├── symeig.o
            │   ├── threshold_backward.o
            │   ├── threshold.o
            │   ├── topk.o
            │   ├── triangular_solve.o
            │   ├── tril.o
            │   ├── triu.o
            │   ├── unselect.o
            │   ├── unsqueeze.o
            │   ├── update_slice.o
            │   ├── view.o
            │   └── xla_ops.o
            ├── pooling.o
            ├── python_util.o
            ├── reduction.o
            ├── softmax_builder.o
            ├── tensor_impl.o
            ├── tensor_methods.o
            ├── tensor.o
            ├── tensor_ops.o
            ├── tensor_util.o
            ├── torch_util.o
            ├── view.o
            └── xla_lower_util.o

The second dir doesn't exist.

@dlibenzi
Copy link
Collaborator

dlibenzi commented May 6, 2019

Hmm, I see the issue. You have _XLAC.so instead of something like _XLAC.cpython-36m-x86_64-linux-gnu.so
Might be due to Python 2.7.
Do you have Python 3.x installed to try?
We really have tested PyTorch/XLA only on 3.x at this point.

We can fix the build, but I am afraid there might be other issues.
If you want to try, you can replace the line:

file(GLOB XLAC_LIBS "${PTXLA_LIBDIR}/_XLAC.*.so")

With:

file(GLOB XLAC_LIBS "${PTXLA_LIBDIR}/_XLAC*.so")

In the test/cpp/CMakeLists.txt file.

@solomatov
Copy link
Author

I run it on Python3 now. It goes farther but hangs at this message:

+ popd
~/pytorch/xla
+ mkdir -p torch_xla/lib
+ chmod 0644 /home/kostik/pytorch/xla/third_party/tensorflow/bazel-bin/tensorflow/compiler/xla/xla_client/libxla_computation_client.so
+ cp /home/kostik/pytorch/xla/third_party/tensorflow/bazel-bin/tensorflow/compiler/xla/xla_client/libxla_computation_client.so torch_xla/lib
running install
running bdist_egg
running egg_info
writing torch_xla.egg-info/PKG-INFO
writing dependency_links to torch_xla.egg-info/dependency_links.txt
writing top-level names to torch_xla.egg-info/top_level.txt
reading manifest file 'torch_xla.egg-info/SOURCES.txt'
writing manifest file 'torch_xla.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
copying torch_xla/lib/libxla_computation_client.so -> build/lib.linux-x86_64-3.6/torch_xla/lib
running build_ext
building '_XLAC' extension

@dlibenzi
Copy link
Collaborator

dlibenzi commented May 6, 2019

I think I know that one. Try:

COMPILE_PARALLEL=0 python setup.py install

@solomatov
Copy link
Author

@dlibenzi It went farther. Now, the error is the following:

CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/test_ptxla.dir/all' failed
make[1]: *** [CMakeFiles/test_ptxla.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Failed to build tests: ['/home/kostik/pytorch/xla/test/cpp/run_tests.sh', '-B']

@dlibenzi
Copy link
Collaborator

dlibenzi commented May 6, 2019

There must be more error above.
That does not say much ...

@solomatov
Copy link
Author

Here's a fragment of logs (the full log doesn't fit into a gist):

                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:284:0: warning: "CHECK_GE" redefined
 #define CHECK_GE(val1, val2) CHECK_OP(Check_GE, >=, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:135:0: note: this is the location of the previous definition
 #define CHECK_GE(val1, val2) CHECK_OP(val1, val2, >=)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:107:0: warning: "VLOG_IS_ON" redefined
 #define VLOG_IS_ON(lvl)                                                     \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:285:0: warning: "CHECK_GT" redefined
 #define CHECK_GT(val1, val2) CHECK_OP(Check_GT, >, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:106:0: note: this is the location of the previous definition
 #define VLOG_IS_ON(verboselevel) (CAFFE2_LOG_THRESHOLD <= -(verboselevel))
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:136:0: note: this is the location of the previous definition
 #define CHECK_GT(val1, val2) CHECK_OP(val1, val2, >)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:116:0: warning: "VLOG" redefined
 #define VLOG(level)                                              \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:286:0: warning: "CHECK_NOTNULL" redefined
 #define CHECK_NOTNULL(val)                                 \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:99:0: note: this is the location of the previous definition
 #define VLOG(n) LOG((-n))
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:169:0: note: this is the location of the previous definition
 #define CHECK_NOTNULL(val) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:127:0: warning: "CHECK" redefined
 #define CHECK(condition)              \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:115:0: note: this is the location of the previous definition
 #define CHECK(condition) FATAL_IF(condition) << "Check failed: " #condition " "
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:302:0: warning: "DCHECK" redefined
 #define DCHECK(condition) \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:122:0: note: this is the location of the previous definition
 #define DCHECK(condition) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:312:0: warning: "DCHECK_EQ" redefined
 #define DCHECK_EQ(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:148:0: note: this is the location of the previous definition
 #define DCHECK_EQ(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:313:0: warning: "DCHECK_NE" redefined
 #define DCHECK_NE(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:151:0: note: this is the location of the previous definition
 #define DCHECK_NE(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:314:0: warning: "DCHECK_LE" redefined
 #define DCHECK_LE(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:154:0: note: this is the location of the previous definition
 #define DCHECK_LE(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:315:0: warning: "DCHECK_LT" redefined
 #define DCHECK_LT(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:157:0: note: this is the location of the previous definition
 #define DCHECK_LT(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:316:0: warning: "DCHECK_GE" redefined
 #define DCHECK_GE(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:277:0: warning: "CHECK_OP" redefined
 #define CHECK_OP(name, op, val1, val2) CHECK_OP_LOG(name, op, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:160:0: note: this is the location of the previous definition
 #define DCHECK_GE(val1, val2) \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:127:0: note: this is the location of the previous definition
 #define CHECK_OP(val1, val2, op) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:317:0: warning: "DCHECK_GT" redefined
 #define DCHECK_GT(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:280:0: warning: "CHECK_EQ" redefined
 #define CHECK_EQ(val1, val2) CHECK_OP(Check_EQ, ==, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.cpp:1:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:163:0: note: this is the location of the previous definition
 #define DCHECK_GT(val1, val2) \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:131:0: note: this is the location of the previous definition
 #define CHECK_EQ(val1, val2) CHECK_OP(val1, val2, ==)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:281:0: warning: "CHECK_NE" redefined
 #define CHECK_NE(val1, val2) CHECK_OP(Check_NE, !=, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:132:0: note: this is the location of the previous definition
 #define CHECK_NE(val1, val2) CHECK_OP(val1, val2, !=)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:282:0: warning: "CHECK_LE" redefined
 #define CHECK_LE(val1, val2) CHECK_OP(Check_LE, <=, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:133:0: note: this is the location of the previous definition
 #define CHECK_LE(val1, val2) CHECK_OP(val1, val2, <=)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:283:0: warning: "CHECK_LT" redefined
 #define CHECK_LT(val1, val2) CHECK_OP(Check_LT, <, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:134:0: note: this is the location of the previous definition
 #define CHECK_LT(val1, val2) CHECK_OP(val1, val2, <)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:284:0: warning: "CHECK_GE" redefined
 #define CHECK_GE(val1, val2) CHECK_OP(Check_GE, >=, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:135:0: note: this is the location of the previous definition
 #define CHECK_GE(val1, val2) CHECK_OP(val1, val2, >=)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:285:0: warning: "CHECK_GT" redefined
 #define CHECK_GT(val1, val2) CHECK_OP(Check_GT, >, val1, val2)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:136:0: note: this is the location of the previous definition
 #define CHECK_GT(val1, val2) CHECK_OP(val1, val2, >)
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:286:0: warning: "CHECK_NOTNULL" redefined
 #define CHECK_NOTNULL(val)                                 \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:169:0: note: this is the location of the previous definition
 #define CHECK_NOTNULL(val) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:302:0: warning: "DCHECK" redefined
 #define DCHECK(condition) \
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:122:0: note: this is the location of the previous definition
 #define DCHECK(condition) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:312:0: warning: "DCHECK_EQ" redefined
 #define DCHECK_EQ(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:148:0: note: this is the location of the previous definition
 #define DCHECK_EQ(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:313:0: warning: "DCHECK_NE" redefined
 #define DCHECK_NE(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:151:0: note: this is the location of the previous definition
 #define DCHECK_NE(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:314:0: warning: "DCHECK_LE" redefined
 #define DCHECK_LE(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:154:0: note: this is the location of the previous definition
 #define DCHECK_LE(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:315:0: warning: "DCHECK_LT" redefined
 #define DCHECK_LT(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:157:0: note: this is the location of the previous definition
 #define DCHECK_LT(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:316:0: warning: "DCHECK_GE" redefined
 #define DCHECK_GE(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:160:0: note: this is the location of the previous definition
 #define DCHECK_GE(val1, val2) \
 
In file included from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/logging.h:25:0,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/lib/core/status.h:25,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/status.h:19,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/util.h:33,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/layout.h:24,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/shape.h:23,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/client/xla_computation.h:22,
                 from /home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/compiler/xla/xla_client/computation_client.h:9,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:10,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/xla/third_party/tensorflow/bazel-tensorflow/tensorflow/core/platform/default/logging.h:317:0: warning: "DCHECK_GT" redefined
 #define DCHECK_GT(x, y) _TF_DCHECK_NOP(x, y)
 
In file included from /home/kostik/pytorch/c10/util/Logging.h:28:0,
                 from /home/kostik/pytorch/c10/core/TensorImpl.h:17,
                 from /home/kostik/pytorch/torch/include/ATen/core/Tensor.h:11,
                 from /home/kostik/pytorch/torch/include/ATen/Tensor.h:2,
                 from /home/kostik/pytorch/torch/include/ATen/Context.h:4,
                 from /home/kostik/pytorch/torch/include/ATen/ATen.h:5,
                 from /home/kostik/pytorch/xla/test/cpp/cpp_test_util.h:3,
                 from /home/kostik/pytorch/xla/test/cpp/test_xla_util_cache.cpp:5:
/home/kostik/pytorch/c10/util/logging_is_not_google_glog.h:163:0: note: this is the location of the previous definition
 #define DCHECK_GT(val1, val2) \
 
CMakeFiles/Makefile2:104: recipe for target 'CMakeFiles/test_ptxla.dir/all' failed
make[1]: *** [CMakeFiles/test_ptxla.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
Failed to build tests: ['/home/kostik/pytorch/xla/test/cpp/run_tests.sh', '-B']

@dlibenzi
Copy link
Collaborator

dlibenzi commented May 6, 2019

Can you try to do a python setup.py clean followed by a python setup.py install and capture the full log.
Then you can post it on https://pastebin.com/

@ailzhang
Copy link
Contributor

ailzhang commented Sep 5, 2019

Closing due to no activity. Please feel free to reopen with a full error log if this error persists. Thanks!

@ailzhang ailzhang closed this as completed Sep 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants