Commit 814552fb authored by Nathanaël Schaeffer's avatar Nathanaël Schaeffer
Browse files

Fix: configure now also tries "-qopenmp-simd" in case the intel compiler is used.

parent 41d491e7
......@@ -78,6 +78,9 @@ DOCUMENTATION:
CHANGE LOG:
-----------
* v3.4.1 (22 Jun 2020)
- fix several bugs (segfaults and compilation issues), thanks to 3 reporters.
* v3.4 (10 Jun 2020)
- Change in API/ABI (`shtns.h`, `shtns.f03`): removal of `lmidx` array and new `nlat_padded` member
in `shtns_cfg` structure; function names and signatures remain unchanged.
......
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for SHTns 3.4.
# Generated by GNU Autoconf 2.69 for SHTns 3.4.1.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
......@@ -577,8 +577,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='SHTns'
PACKAGE_TARNAME='shtns'
PACKAGE_VERSION='3.4'
PACKAGE_STRING='SHTns 3.4'
PACKAGE_VERSION='3.4.1'
PACKAGE_STRING='SHTns 3.4.1'
PACKAGE_BUGREPORT=''
PACKAGE_URL='https://bitbucket.org/nschaeff/shtns'
......@@ -1253,7 +1253,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures SHTns 3.4 to adapt to many kinds of systems.
\`configure' configures SHTns 3.4.1 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
......@@ -1314,7 +1314,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of SHTns 3.4:";;
short | recursive ) echo "Configuration of SHTns 3.4.1:";;
esac
cat <<\_ACEOF
......@@ -1422,7 +1422,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
SHTns configure 3.4
SHTns configure 3.4.1
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
......@@ -1879,7 +1879,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by SHTns $as_me 3.4, which was
It was created by SHTns $as_me 3.4.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
......@@ -3630,6 +3630,35 @@ $as_echo "no" >&6; }
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -qopenmp-simd" >&5
$as_echo_n "checking whether $CC accepts -qopenmp-simd... " >&6; }
ax_check_save_flags=$CFLAGS
CFLAGS="$CFLAGS -qopenmp-simd"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
int
main ()
{
;
return 0;
}
_ACEOF
if ac_fn_c_try_compile "$LINENO"; then :
CFLAGS=$ax_check_save_flags
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
$as_echo "yes" >&6; }
CFLAGS="$CFLAGS -qopenmp-simd"
else
CFLAGS=$ax_check_save_flags
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
$as_echo "no" >&6; }
:
fi
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
# the following prevents gcc from inserting memset in tight loops for zeroing stuff. Must appear after -O3
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -fno-tree-loop-distribute-patterns" >&5
......@@ -5928,7 +5957,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by SHTns $as_me 3.4, which was
This file was extended by SHTns $as_me 3.4.1, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
......@@ -5991,7 +6020,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
SHTns config.status 3.4
SHTns config.status 3.4.1
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
......
......@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.62])
AC_INIT([SHTns],[3.4],[],[shtns],[https://bitbucket.org/nschaeff/shtns])
AC_INIT([SHTns],[3.4.1],[],[shtns],[https://bitbucket.org/nschaeff/shtns])
AC_LANG([C])
AC_CONFIG_SRCDIR([sht_init.c])
AC_CONFIG_HEADERS([sht_config.h])
......@@ -98,6 +98,7 @@ CFLAGS="$CFLAGS -O3"
AX_CHECK_COMPILE_FLAG([-ffast-math])
AX_CHECK_COMPILE_FLAG([-std=gnu99])
AX_CHECK_COMPILE_FLAG([-fopenmp-simd])
AX_CHECK_COMPILE_FLAG([-qopenmp-simd])
# the following prevents gcc from inserting memset in tight loops for zeroing stuff. Must appear after -O3
AX_CHECK_COMPILE_FLAG([-fno-tree-loop-distribute-patterns])
# avoid insering VZEROUPPER instructions everywhere.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment