minimize header file includes from _avx2.cc (#14950)
authorJongsoo Park <jongsoo@fb.com>
Thu, 13 Dec 2018 08:15:51 +0000 (00:15 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 13 Dec 2018 08:18:11 +0000 (00:18 -0800)
commit1e0eab5df839ae4124fa558c9c82586c9993eaab
tree6581ced51f903b8a2fdf26aea620a6271b4763f3
parent4b97a4642100e26d14c34c07c31643422d60ac48
minimize header file includes from _avx2.cc (#14950)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14950

Minimize the number of headers included from _avx2.cc files to avoid accidental compilation of functions defined the header files reused by other translation units that can lead to illegal instruction errors.

Reviewed By: dskhudia

Differential Revision: D13394483

fbshipit-source-id: 67149a6fb51f7f047e745bfe395cb6dd4ae7c1ae
12 files changed:
caffe2/operators/fused_rowwise_random_quantization_ops.cc
caffe2/operators/fused_rowwise_random_quantization_ops.h
caffe2/perfkernels/adagrad.cc
caffe2/perfkernels/adagrad.h
caffe2/perfkernels/common.h
caffe2/perfkernels/embedding_lookup_avx2.cc
caffe2/perfkernels/embedding_lookup_fused_8bit_rowwise_avx2.cc
caffe2/perfkernels/hp_emblookup_codegen.py
caffe2/perfkernels/math.h
caffe2/perfkernels/math_cpu_avx2.cc
caffe2/perfkernels/math_cpu_base.cc
caffe2/perfkernels/typed_axpy_avx2.cc