Turn on VLOG
1 | // Otherwise, set TF_CPP_MIN_VLOG_LEVEL environment to update minimum log level |
AddressSanitizer
https://github.com/korfuri/client_cpp/blob/master/tools/bazel.rc
https://github.com/tensorflow/tensorflow/commit/0b48315329314d1ab628dadb1434e770eded9c8f
ToolChain: https://docs.bazel.build/versions/0.22.0/crosstool-reference.html
Bazel build: https://docs.bazel.build/versions/master/tutorial/cpp.html
Running with AddressSantitizer: https://github.com/mlperf/training/tree/master/reinforcement/tensorflow/minigo/cc#running-with-addresssanitizer
How to use your C++ muscle using TensorFlow 2.0 and XCode (without using Bazel builds): https://itnext.io/how-to-use-your-c-muscle-using-tensorflow-2-0-and-xcode-without-using-bazel-builds-9dc82d5e7f80
1 | bazel test //tensorflow/core/kernels/data:name_utils_test --copt=-fsanitize=address --linkopt=-fsanitize=address --copt=-fno-omit-frame-pointer --copt=-O1 |