Skip to content

Commit 328426a

Browse files
authored
Merge pull request #9172 from bosilca/topic/fix_avx_detection_with_icc
Fix AVX detection with icc.
2 parents 7b61093 + 24a2909 commit 328426a

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ompi/mca/op/avx/configure.m4

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
5151
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
5252
[[
5353
#if defined(__ICC) && !defined(__AVX512F__)
54-
#error "icc needs the -m flags to provide the AVX* detection macros
54+
#error "icc needs the -m flags to provide the AVX* detection macros"
5555
#endif
5656
__m512 vA, vB;
5757
_mm512_add_ps(vA, vB)
@@ -68,7 +68,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
6868
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
6969
[[
7070
#if defined(__ICC) && !defined(__AVX512F__)
71-
#error "icc needs the -m flags to provide the AVX* detection macros
71+
#error "icc needs the -m flags to provide the AVX* detection macros"
7272
#endif
7373
__m512 vA, vB;
7474
_mm512_add_ps(vA, vB)
@@ -91,7 +91,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
9191
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
9292
[[
9393
#if defined(__ICC) && !defined(__AVX512F__)
94-
#error "icc needs the -m flags to provide the AVX* detection macros
94+
#error "icc needs the -m flags to provide the AVX* detection macros"
9595
#endif
9696
int A[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16};
9797
__m512i vA = _mm512_loadu_si512((__m512i*)&(A[1]))
@@ -113,7 +113,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
113113
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
114114
[[
115115
#if defined(__ICC) && !defined(__AVX512F__)
116-
#error "icc needs the -m flags to provide the AVX* detection macros
116+
#error "icc needs the -m flags to provide the AVX* detection macros"
117117
#endif
118118
__m512i vA, vB;
119119
_mm512_mullo_epi64(vA, vB)
@@ -134,7 +134,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
134134
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
135135
[[
136136
#if defined(__ICC) && !defined(__AVX2__)
137-
#error "icc needs the -m flags to provide the AVX* detection macros
137+
#error "icc needs the -m flags to provide the AVX* detection macros"
138138
#endif
139139
__m256i vA, vB, vC;
140140
vC = _mm256_and_si256(vA, vB)
@@ -150,7 +150,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
150150
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
151151
[[
152152
#if defined(__ICC) && !defined(__AVX2__)
153-
#error "icc needs the -m flags to provide the AVX* detection macros
153+
#error "icc needs the -m flags to provide the AVX* detection macros"
154154
#endif
155155
__m256i vA, vB, vC;
156156
vC = _mm256_and_si256(vA, vB)
@@ -173,7 +173,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
173173
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
174174
[[
175175
#if defined(__ICC) && !defined(__AVX2__)
176-
#error "icc needs the -m flags to provide the AVX* detection macros
176+
#error "icc needs the -m flags to provide the AVX* detection macros"
177177
#endif
178178
int A[8] = {0, 1, 2, 3, 4, 5, 6, 7};
179179
__m256i vA = _mm256_loadu_si256((__m256i*)&A)
@@ -199,7 +199,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
199199
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
200200
[[
201201
#if defined(__ICC) && !defined(__AVX__)
202-
#error "icc needs the -m flags to provide the AVX* detection macros
202+
#error "icc needs the -m flags to provide the AVX* detection macros"
203203
#endif
204204
__m256 vA, vB, vC;
205205
vC = _mm256_add_ps(vA, vB)
@@ -217,7 +217,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
217217
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
218218
[[
219219
#if defined(__ICC) && !defined(__SSE4_1__)
220-
#error "icc needs the -m flags to provide the AVX* detection macros
220+
#error "icc needs the -m flags to provide the AVX* detection macros"
221221
#endif
222222
__m128i vA, vB;
223223
(void)_mm_max_epi8(vA, vB)
@@ -236,7 +236,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
236236
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
237237
[[
238238
#if defined(__ICC) && !defined(__SSE3__)
239-
#error "icc needs the -m flags to provide the AVX* detection macros
239+
#error "icc needs the -m flags to provide the AVX* detection macros"
240240
#endif
241241
int A[4] = {0, 1, 2, 3};
242242
__m128i vA = _mm_lddqu_si128((__m128i*)&A)
@@ -256,7 +256,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
256256
[[
257257
__m256 vA, vB, vC;
258258
#if defined(__ICC) && !defined(__AVX__)
259-
#error "icc needs the -m flags to provide the AVX* detection macros
259+
#error "icc needs the -m flags to provide the AVX* detection macros"
260260
#endif
261261
vC = _mm256_add_ps(vA, vB)
262262
]])],
@@ -273,7 +273,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
273273
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
274274
[[
275275
#if defined(__ICC) && !defined(__SSE4_1__)
276-
#error "icc needs the -m flags to provide the AVX* detection macros
276+
#error "icc needs the -m flags to provide the AVX* detection macros"
277277
#endif
278278
__m128i vA, vB;
279279
(void)_mm_max_epi8(vA, vB)
@@ -287,7 +287,7 @@ AC_DEFUN([MCA_ompi_op_avx_CONFIG],[
287287
[AC_LANG_PROGRAM([[#include <immintrin.h>]],
288288
[[
289289
#if defined(__ICC) && !defined(__SSE3__)
290-
#error "icc needs the -m flags to provide the AVX* detection macros
290+
#error "icc needs the -m flags to provide the AVX* detection macros"
291291
#endif
292292
int A[4] = {0, 1, 2, 3};
293293
__m128i vA = _mm_lddqu_si128((__m128i*)&A)

0 commit comments

Comments
 (0)