Run QEMU to test that default dispatch doesn't use AVX (#38094)
Summary:
`qemu-x86_64 -cpu Haswell` jit compiels x86_64 code to the host OS but lacks support for AVX/AVX2 instruction set emulation, which makes it ideal target for testing instruction set violation (especially via static initializes) even if it runs on CPU physically capable of executing AVX2 instructions.
It's quite easy to validate, that it is the case, by invoking ATen's `basic` cpp test with dispatch set to AVX: `qemu-x86_64 -cpu Broadwell -E ATEN_CPU_CAPABILITY=avx ./bin/basic --gtest_filter=BasicTest.BasicTestCPU`
This PR adds extra step to CircleCI tessuite that executes `basic` test with default CPU capability for `pytorch-linux-[xenial|bionic]-py3.6-...-test` configurations using qemu and validates that it completes successfully. (And fails before https://github.com/pytorch/pytorch/pull/38088 is merged)
Closes https://github.com/pytorch/pytorch/issues/37786
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38094
Differential Revision: D21472278
Pulled By: malfet
fbshipit-source-id: 722d4eceac8ce6fbc336ab883819cf7fccea3a66