Update int8_simd.h (#13859)
authorJerryShih <jerry.shih@iclink.tw>
Thu, 17 Jan 2019 07:17:03 +0000 (23:17 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 17 Jan 2019 07:19:46 +0000 (23:19 -0800)
commit0dfdc2cbdb71b5a8dcac0c3e6cc59b74ad2b30dc
treeba69e1bd2d99ac811ac0ec0d156400019e8116ba
parentffd613800f6da0c4b7a9c1952523aee3d6d2d32b
Update int8_simd.h (#13859)

Summary:
If we use clang with sse4 support, we will have the function redefinition
error between [1] and [2]. This patch try to add some checkings to fix this
problem.

I just turn on USE_NATIVE_ARCH with clang, then I hit the redefinition error.

[1]
caffe2/operators/quantized/int8_simd.h
[2]
third_party/gemmlowp/gemmlowp/fixedpoint/fixedpoint_sse.h
Pull Request resolved: https://github.com/pytorch/pytorch/pull/13859

Differential Revision: D13095694

Pulled By: ezyang

fbshipit-source-id: c65166e4d5a04bb54e2b82c52740af00116ccb0d
caffe2/operators/quantized/int8_simd.h