I'm building tensorflow from source with bazel, as described here:
https://www.tensorflow.org/install/install_sources
Following the installation doc, I successfully compile with the following:
bazel build -c opt --copt=-mavx --copt=-mavx2 --copt=-mfma --copt=-mfpmath=both \
--cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"--config=cuda \
-k //tensorflow/tools/pip_package:build_pip_package
a combination of the accepted answer here and a note in the installation documentation "to add --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"
to the build command for gcc 5 and later".
however, import tensorflow as tf
results in the error
illegal instruction (core dumped), exiting python.
I have additionally tried: conda update libgcc
to no avail.
How can I build tensorflow from source with gcc 5.0?