Fix centos8 gcc (#44644)

Summary:
Fixes https://github.com/pytorch/pytorch/issues/44198 properly this time

Pull Request resolved: https://github.com/pytorch/pytorch/pull/44644

Reviewed By: albanD

Differential Revision: D23684909

Pulled By: malfet

fbshipit-source-id: cea6f6e2ae28138f6b93a6513d1abd36d14ae573
This commit is contained in:
Marcin Juszkiewicz 2020-09-14 12:17:00 -07:00 committed by Facebook GitHub Bot
parent ace81b6794
commit e261e0953e

View File

@ -614,6 +614,7 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64")
include(CheckCSourceCompiles) include(CheckCSourceCompiles)
check_c_source_compiles("#include <arm_neon.h> check_c_source_compiles("#include <arm_neon.h>
int main() { int main() {
float a[] = {1.0, 1.0};
float32x4x2_t v; float32x4x2_t v;
v.val[0] = vcombine_f32 (vcreate_f32 (__AARCH64_UINT64_C (0)), vcreate_f32 (__AARCH64_UINT64_C (0))); v.val[0] = vcombine_f32 (vcreate_f32 (__AARCH64_UINT64_C (0)), vcreate_f32 (__AARCH64_UINT64_C (0)));
v.val[1] = vcombine_f32 (vcreate_f32 (__AARCH64_UINT64_C (0)), vcreate_f32 (__AARCH64_UINT64_C (0))); v.val[1] = vcombine_f32 (vcreate_f32 (__AARCH64_UINT64_C (0)), vcreate_f32 (__AARCH64_UINT64_C (0)));