fixes for AVX detection (#17915)
authorThomas Viehmann <tv@beamnet.de>
Wed, 13 Mar 2019 10:44:16 +0000 (03:44 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 13 Mar 2019 10:55:06 +0000 (03:55 -0700)
commit13bc0024225a5fba2d7f83fe189d1d766b0d8d45
tree1b36c43a7f0321326672d5472327e1b1372c2fee
parent7e34bd230bbbb24d184ab2c725f711ea3a279713
fixes for AVX detection (#17915)

Summary:
Our AVX2 routines use functions such as _mm256_extract_epi64
that do not exist on 32 bit systems even when they have AVX2.
This disables AVX2 when _mm256_extract_epi64 does not exist.

This fixes the "local" part of #17901 (except disabling FBGEMM),
but there also is sleef to be updated and NNPACK to be fixed,
see the bug report for further discussion.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17915

Differential Revision: D14437338

Pulled By: soumith

fbshipit-source-id: d4ef7e0801b5d1222a855a38ec207dd88b4680da
caffe2/quantization/server/CMakeLists.txt
cmake/MiscCheck.cmake
cmake/Modules/FindAVX.cmake