backscrub
backscrub copied to clipboard
compile with gcc-11
More of a notes than an issue but at this point tensorflow does not compile with gcc 11, so if needed here are the notes on how to compile.
Changes needed:
mkdir build
cd build
cmake ../
then in:
- abseil-cpp/absl/synchronization/internal/graphcycles.h and ruy/ruy/block_map.h add at the top:
#include <limits>
#include <stdexcept>
- xnnpack/src/xnnpack/intrinsics-polyfill.h replace line 15 :
#if (defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER)) || \by#if (defined(__GNUC__) && !defined(__clang__) && !defined(__INTEL_COMPILER) && __GNUC__ < 11) || \
Care to upstream those comments to the TensorFlow guys? Just in case there aren't open issues for those two changes there yet.
Care to upstream those comments to the TensorFlow guys? Just in case there aren't open issues for those two changes there yet.
they are well aware of the compile issue, that is where I found the workaround ( split in 2 different sources ).
I just thought of adding the note here to save some time for someone who would like to compile with gcc11 ( arch users for example ).
Is this still an issue for newer Tensorflow versions? We're on 2.8.0 at present.
AFAIR we now got problems with GCC 12, cf. #145 …