mirror of
https://github.com/TREX-CoE/qmckl.git
synced 2024-08-25 06:31:45 +02:00
Avoid SIMD length=127
This commit is contained in:
parent
30c3e48d91
commit
9a779f2a94
14
configure.ac
14
configure.ac
@ -217,6 +217,7 @@ PKG_LIBS2="$PKG_LIBS2 $TREXIO_LIBS"
|
|||||||
|
|
||||||
# Checking SIMD
|
# Checking SIMD
|
||||||
AC_MSG_CHECKING([for SIMD length])
|
AC_MSG_CHECKING([for SIMD length])
|
||||||
|
SIMD_LENGTH=1
|
||||||
AC_RUN_IFELSE(
|
AC_RUN_IFELSE(
|
||||||
[AC_LANG_PROGRAM([],[
|
[AC_LANG_PROGRAM([],[
|
||||||
int simd=1;
|
int simd=1;
|
||||||
@ -230,10 +231,15 @@ int simd=1;
|
|||||||
simd=2;
|
simd=2;
|
||||||
#endif
|
#endif
|
||||||
return simd;
|
return simd;
|
||||||
])],
|
])], [SIMD_LENGTH=1],
|
||||||
[ SIMD_LENGTH=1 ],
|
[ AS_CASE([$?],
|
||||||
[ SIMD_LENGTH=$? ],
|
[1], [SIMD_LENGTH=1],
|
||||||
[ SIMD_LENGTH=1 ]
|
[2], [SIMD_LENGTH=2],
|
||||||
|
[4], [SIMD_LENGTH=4],
|
||||||
|
[8], [SIMD_LENGTH=8],
|
||||||
|
[16], [SIMD_LENGTH=16],
|
||||||
|
[SIMD_LENGTH=1])],
|
||||||
|
[SIMD_LENGTH=1]
|
||||||
)
|
)
|
||||||
AC_MSG_RESULT([$SIMD_LENGTH])
|
AC_MSG_RESULT([$SIMD_LENGTH])
|
||||||
AC_DEFINE_UNQUOTED([SIMD_LENGTH], [$SIMD_LENGTH], [Length of SIMD vectors])
|
AC_DEFINE_UNQUOTED([SIMD_LENGTH], [$SIMD_LENGTH], [Length of SIMD vectors])
|
||||||
|
Loading…
Reference in New Issue
Block a user