File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 4
4
# of Tennessee Research Foundation. All rights
5
5
# reserved.
6
6
# Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
7
+ # Copyright (c) 2020 Research Organization for Information Science
8
+ # and Technology (RIST). All rights reserved.
7
9
#
8
10
# $COPYRIGHT$
9
11
#
@@ -83,6 +85,25 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
83
85
CFLAGS= " $op_avx_cflags_save "
84
86
])
85
87
#
88
+ # Some PGI compilers do not define _mm512_mullo_epi64. Screen them out.
89
+ #
90
+ AS_IF([test $op_avx512_support -eq 1],
91
+ [AC_MSG_CHECKING([if _mm512_mullo_epi64 generates code that can be compiled])
92
+ op_avx_cflags_save= " $CFLAGS "
93
+ CFLAGS= " $CFLAGS_WITHOUT_OPTFLAGS -O0 $MCA_BUILD_OP_AVX512_FLAGS "
94
+ AC_LINK_IFELSE(
95
+ [AC_LANG_PROGRAM([[# include <immintrin.h>]],
96
+ [[
97
+ __m512i vA, vB;
98
+ _mm512_mullo_epi64(vA, vB)
99
+ ]])],
100
+ [AC_MSG_RESULT([yes])],
101
+ [op_avx512_support= 0
102
+ MCA_BUILD_OP_AVX512_FLAGS= " "
103
+ AC_MSG_RESULT([no])])
104
+ CFLAGS= " $op_avx_cflags_save "
105
+ ])
106
+ #
86
107
# Check support for AVX2
87
108
#
88
109
AC_MSG_CHECKING([for AVX2 support (no additional flags)])
You can’t perform that action at this time.
0 commit comments