Giter VIP home page Giter VIP logo

Comments (10)

dlibenzi avatar dlibenzi commented on June 23, 2024 1

I think I know that one. Try:

COMPILE_PARALLEL=0 python setup.py install

from xla.

dlibenzi avatar dlibenzi commented on June 23, 2024

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?

from xla.

solomatov avatar solomatov commented on June 23, 2024

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.

from xla.

dlibenzi avatar dlibenzi commented on June 23, 2024

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.

from xla.

solomatov avatar solomatov commented on June 23, 2024

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

from xla.

solomatov avatar solomatov commented on June 23, 2024

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

from xla.

dlibenzi avatar dlibenzi commented on June 23, 2024

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

from xla.

solomatov avatar solomatov commented on June 23, 2024

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']

from xla.

dlibenzi avatar dlibenzi commented on June 23, 2024

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/

from xla.

ailzhang avatar ailzhang commented on June 23, 2024

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

from xla.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.