Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes compilation on gcc 10 (pytorch#441)
Summary: This does not work with gcc10, it fails with ``` FAILED: third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFP16UKernelsAvx2.cc.o /usr/bin/c++ -DFBGEMM_STATIC -DTH_BLAS_MKL -I../third_party/cpuinfo/include -I../third_party/fbgemm/third_party/asmjit/src -I../third_party/fbgemm/include -I../third_party/fbgemm -I../cmake/../third_party/benchmark/include -isystem ../cmake/../third_party/googletest/googlemock/include -isystem ../cmake/../third_party/googletest/googletest/include -isystem ../third_party/protobuf/src -isystem /opt/intel/mkl/include -isystem ../third_party/gemmlowp -isystem ../third_party/neon2sse -isystem ../third_party/XNNPACK/include -Wno-deprecated -fvisibility-inlines-hidden -DUSE_PTHREADPOOL -fopenmp -O2 -g -DNDEBUG -fPIC -fvisibility=hidden -m64 -mavx2 -mf16c -mfma -std=c++14 -masm=intel -MD -MT third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFP16UKernelsAvx2.cc.o -MF third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFP16UKernelsAvx2.cc.o.d -o third_party/fbgemm/CMakeFiles/fbgemm_avx2.dir/src/FbgemmFP16UKernelsAvx2.cc.o -c ../third_party/fbgemm/src/FbgemmFP16UKernelsAvx2.cc In file included from ../third_party/fbgemm/src/././FbgemmFPCommon.h:11, from ../third_party/fbgemm/src/./FbgemmFP16UKernelsAvx2.h:13, from ../third_party/fbgemm/src/FbgemmFP16UKernelsAvx2.cc:7: ../third_party/fbgemm/include/fbgemm/FbgemmPackMatrixB.h: In member function ‘void fbgemm::PackedGemmMatrixB<T>::initializeParam()’: ../third_party/fbgemm/include/fbgemm/FbgemmPackMatrixB.h:77:18: error: ‘runtime_error’ is not a member of ‘std’ 77 | throw std::runtime_error("Failed to initialize cpuinfo!"); | ^~~~~~~~~~~~~ ``` Pull Request resolved: pytorch#441 Reviewed By: jspark1105 Differential Revision: D24352664 Pulled By: jianyuh fbshipit-source-id: c95654a99a4fdbdf6d7bf69a4e9acc33ff3aa110
- Loading branch information