Update LAPACK to 3.9.0

This commit is contained in:
Martin Kroeker 2019-12-29 18:47:53 +01:00 committed by GitHub
parent 60135f3bd3
commit 6e02ec95b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 245 additions and 262 deletions

View File

@ -1,30 +1,33 @@
include ../make.inc TOPSRCDIR = ..
include $(TOPSRCDIR)/make.inc
.PHONY: all testlsame testslamch testdlamch testsecond testdsecnd testieee testversion
all: testlsame testslamch testdlamch testsecond testdsecnd testieee testversion all: testlsame testslamch testdlamch testsecond testdsecnd testieee testversion
testlsame: lsame.o lsametst.o testlsame: lsame.o lsametst.o
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
testslamch: slamch.o lsame.o slamchtst.o testslamch: slamch.o lsame.o slamchtst.o
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
testdlamch: dlamch.o lsame.o dlamchtst.o testdlamch: dlamch.o lsame.o dlamchtst.o
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
testsecond: second_$(TIMER).o secondtst.o testsecond: second_$(TIMER).o secondtst.o
@echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)" @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
testdsecnd: dsecnd_$(TIMER).o dsecndtst.o testdsecnd: dsecnd_$(TIMER).o dsecndtst.o
@echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)" @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
testieee: tstiee.o testieee: tstiee.o
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
testversion: ilaver.o LAPACK_version.o testversion: ilaver.o LAPACK_version.o
$(LOADER) $(LOADOPTS) -o $@ $^ $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
.PHONY: run
run: all run: all
./testlsame ./testlsame
./testslamch ./testslamch
@ -34,6 +37,7 @@ run: all
./testieee ./testieee
./testversion ./testversion
.PHONY: clean cleanobj cleanexe cleantest
clean: cleanobj cleanexe cleantest clean: cleanobj cleanexe cleantest
cleanobj: cleanobj:
rm -f *.o rm -f *.o
@ -42,9 +46,5 @@ cleanexe:
cleantest: cleantest:
rm -f core rm -f core
.SUFFIXES: .o .f slamch.o: slamch.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
.f.o: dlamch.o: dlamch.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
$(FORTRAN) $(OPTS) -c -o $@ $<
slamch.o: slamch.f ; $(FORTRAN) $(NOOPT) -c -o $@ $<
dlamch.o: dlamch.f ; $(FORTRAN) $(NOOPT) -c -o $@ $<

View File

@ -10,6 +10,10 @@
* *
* DOUBLE PRECISION FUNCTION DLAMCH( CMACH ) * DOUBLE PRECISION FUNCTION DLAMCH( CMACH )
* *
* .. Scalar Arguments ..
* CHARACTER CMACH
* ..
*
* *
*> \par Purpose: *> \par Purpose:
* ============= * =============
@ -24,6 +28,7 @@
* *
*> \param[in] CMACH *> \param[in] CMACH
*> \verbatim *> \verbatim
*> CMACH is CHARACTER*1
*> Specifies the value to be returned by DLAMCH: *> Specifies the value to be returned by DLAMCH:
*> = 'E' or 'e', DLAMCH := eps *> = 'E' or 'e', DLAMCH := eps
*> = 'S' or 's , DLAMCH := sfmin *> = 'S' or 's , DLAMCH := sfmin

View File

@ -10,6 +10,10 @@
* *
* DOUBLE PRECISION FUNCTION DLAMCH( CMACH ) * DOUBLE PRECISION FUNCTION DLAMCH( CMACH )
* *
* .. Scalar Arguments ..
* CHARACTER CMACH
* ..
*
* *
*> \par Purpose: *> \par Purpose:
* ============= * =============

View File

@ -25,12 +25,15 @@
* ========== * ==========
* *
*> \param[out] VERS_MAJOR *> \param[out] VERS_MAJOR
*> VERS_MAJOR is INTEGER
*> return the lapack major version *> return the lapack major version
*> *>
*> \param[out] VERS_MINOR *> \param[out] VERS_MINOR
*> VERS_MINOR is INTEGER
*> return the lapack minor version from the major version *> return the lapack minor version from the major version
*> *>
*> \param[out] VERS_PATCH *> \param[out] VERS_PATCH
*> VERS_PATCH is INTEGER
*> return the lapack patch version from the minor version *> return the lapack patch version from the minor version
* *
* Authors: * Authors:
@ -41,24 +44,23 @@
*> \author Univ. of Colorado Denver *> \author Univ. of Colorado Denver
*> \author NAG Ltd. *> \author NAG Ltd.
* *
*> \date June 2017 *> \date November 2019
* *
*> \ingroup auxOTHERauxiliary *> \ingroup auxOTHERauxiliary
* *
* ===================================================================== * =====================================================================
SUBROUTINE ILAVER( VERS_MAJOR, VERS_MINOR, VERS_PATCH ) SUBROUTINE ILAVER( VERS_MAJOR, VERS_MINOR, VERS_PATCH )
* *
* -- LAPACK computational routine (version 3.7.1) -- * -- LAPACK computational routine --
* -- LAPACK is a software package provided by Univ. of Tennessee, -- * -- LAPACK is a software package provided by Univ. of Tennessee, --
* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..-- * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
* June 2017
* *
* ===================================================================== * =====================================================================
* *
INTEGER VERS_MAJOR, VERS_MINOR, VERS_PATCH INTEGER VERS_MAJOR, VERS_MINOR, VERS_PATCH
* ===================================================================== * =====================================================================
VERS_MAJOR = 3 VERS_MAJOR = 3
VERS_MINOR = 8 VERS_MINOR = 9
VERS_PATCH = 0 VERS_PATCH = 0
* ===================================================================== * =====================================================================
* *

View File

@ -11,26 +11,24 @@ SHELL = /bin/sh
CC = cc CC = cc
CFLAGS = -O4 CFLAGS = -O4
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
OPTS = -O4 -fpe1 FFLAGS = -O4 -fpe1
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = FFLAGS_NOOPT =
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = ranlib RANLIB = ranlib
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -74,9 +72,9 @@ TIMER = EXT_ETIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
#BLASLIB = ../../librefblas.a #BLASLIB = $(TOPSRCDIR)/librefblas.a
BLASLIB = -ldxml BLASLIB = -ldxml
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,26 +11,24 @@ SHELL = /bin/sh
CC = cc CC = cc
CFLAGS = CFLAGS =
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
OPTS = +O4 +U77 FFLAGS = +O4 +U77
DRVOPTS = $(OPTS) -K FFLAGS_DRV = $(FFLAGS) -K
NOOPT = +U77 FFLAGS_NOOPT = +U77
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
LOADOPTS = -Aa +U77
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -74,9 +72,9 @@ TIMER = EXT_ETIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
#BLASLIB = ../../librefblas.a #BLASLIB = $(TOPSRCDIR)/librefblas.a
BLASLIB = -lblas BLASLIB = -lblas
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,29 +11,26 @@ SHELL = /sbin/sh
CC = cc CC = cc
CFLAGS = -O3 CFLAGS = -O3
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
OPTS = -O3 -64 -mips4 -r10000 -OPT:IEEE_NaN_inf=ON FFLAGS = -O3 -64 -mips4 -r10000 -OPT:IEEE_NaN_inf=ON
#OPTS = -g -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON #FFLAGS = -g -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON
DRVOPTS = $(OPTS) -static FFLAGS_DRV = $(FFLAGS) -static
NOOPT = -64 -mips4 -r10000 -OPT:IEEE_NaN_inf=ON FFLAGS_NOOPT = -64 -mips4 -r10000 -OPT:IEEE_NaN_inf=ON
#NOOPT = -g -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON #FFLAGS_NOOPT = -g -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
LOADOPTS = -O3 -64 -mips4 -r10000 -OPT:IEEE_NaN_inf=ON
#LOADOPTS = -g -DEBUG:subscript_check=ON -trapuv -OPT:IEEE_NaN_inf=ON
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -78,8 +75,8 @@ TIMER = EXT_ETIME
# possible.) # possible.)
# #
#BLASLIB = -lblas #BLASLIB = -lblas
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,29 +11,26 @@ SHELL = /sbin/sh
CC = cc CC = cc
CFLAGS = -O3 CFLAGS = -O3
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
OPTS = -O3 -64 -mips4 -r10000 FFLAGS = -O3 -64 -mips4 -r10000
#OPTS = -O3 -64 -mips4 -r10000 -mp #FFLAGS = -O3 -64 -mips4 -r10000 -mp
DRVOPTS = $(OPTS) -static FFLAGS_DRV = $(FFLAGS) -static
NOOPT = -64 -mips4 -r10000 FFLAGS_NOOPT = -64 -mips4 -r10000
#NOOPT = -64 -mips4 -r10000 -mp #FFLAGS_NOOPT = -64 -mips4 -r10000 -mp
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
LOADOPTS = -O3 -64 -mips4 -r10000
#LOADOPTS = -O3 -64 -mips4 -r10000 -mp
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -79,8 +76,8 @@ TIMER = EXT_ETIME
# #
BLASLIB = -lblas BLASLIB = -lblas
#BLASLIB = -lblas_mp #BLASLIB = -lblas_mp
#BLASLIB = ../../librefblas.a #BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,26 +11,24 @@ SHELL = /sbin/sh
CC = cc CC = cc
CFLAGS = -O4 CFLAGS = -O4
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
OPTS = -O4 FFLAGS = -O4
DRVOPTS = $(OPTS) -static FFLAGS_DRV = $(FFLAGS) -static
NOOPT = FFLAGS_NOOPT =
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -75,8 +73,8 @@ TIMER = EXT_ETIME
# possible.) # possible.)
# #
#BLASLIB = -lblas #BLASLIB = -lblas
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,26 +11,24 @@ SHELL = /bin/sh
CC = cc CC = cc
CFLAGS = -O3 CFLAGS = -O3
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
OPTS = -dalign -O4 -fast FFLAGS = -dalign -O4 -fast
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = FFLAGS_NOOPT =
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
LOADOPTS = -dalign -O4 -fast
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = ranlib RANLIB = ranlib
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -75,8 +73,8 @@ TIMER = EXT_ETIME
# possible.) # possible.)
# #
#BLASLIB = -lblas #BLASLIB = -lblas
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,30 +11,27 @@ SHELL = /bin/sh
CC = cc CC = cc
CFLAGS = -O3 CFLAGS = -O3
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = f77 FC = f77
#OPTS = -O4 -u -f -mt #FFLAGS = -O4 -u -f -mt
#OPTS = -u -f -dalign -native -xO5 -xarch=v8plusa #FFLAGS = -u -f -dalign -native -xO5 -xarch=v8plusa
OPTS = -u -f -dalign -native -xO2 -xarch=v8plusa FFLAGS = -u -f -dalign -native -xO2 -xarch=v8plusa
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -u -f FFLAGS_NOOPT = -u -f
#NOOPT = -u -f -mt #FFLAGS_NOOPT = -u -f -mt
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = f77 LDFLAGS =
#LOADOPTS = -mt
LOADOPTS = -f -dalign -native -xO2 -xarch=v8plusa
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -78,10 +75,10 @@ TIMER = EXT_ETIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
#BLASLIB = ../../librefblas.a #BLASLIB = $(TOPSRCDIR)/librefblas.a
#BLASLIB = -xlic_lib=sunperf_mt #BLASLIB = -xlic_lib=sunperf_mt
BLASLIB = -xlic_lib=sunperf BLASLIB = -xlic_lib=sunperf
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,27 +11,25 @@ SHELL = /bin/sh
CC = xlc CC = xlc
CFLAGS = -O3 -qnosave CFLAGS = -O3 -qnosave
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = xlf FC = xlf
OPTS = -O3 -qfixed -qnosave FFLAGS = -O3 -qfixed -qnosave
# For -O2, add -qstrict=none # For -O2, add -qstrict=none
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -O0 -qfixed -qnosave FFLAGS_NOOPT = -O0 -qfixed -qnosave
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = xlf LDFLAGS =
LOADOPTS = -qnosave
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = ranlib RANLIB = ranlib
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -75,9 +73,9 @@ TIMER = EXT_ETIME_
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
#BLASLIB = ../../librefblas.a #BLASLIB = $(TOPSRCDIR)/librefblas.a
BLASLIB = -lessl BLASLIB = -lessl
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,7 +11,7 @@ SHELL = /bin/sh
CC = gcc CC = gcc
CFLAGS = -O3 CFLAGS = -O3
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
@ -19,22 +19,20 @@ CFLAGS = -O3
# and handle these quantities appropriately. As a consequence, one # and handle these quantities appropriately. As a consequence, one
# should not compile LAPACK with flags such as -ffpe-trap=overflow. # should not compile LAPACK with flags such as -ffpe-trap=overflow.
# #
FORTRAN = gfortran FC = gfortran
OPTS = -O2 -frecursive FFLAGS = -O2 -frecursive
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -O0 -frecursive FFLAGS_NOOPT = -O0 -frecursive
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = gfortran LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = ranlib RANLIB = ranlib
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -78,8 +76,8 @@ TIMER = INT_ETIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,7 +11,7 @@ SHELL = /bin/sh
CC = gcc CC = gcc
CFLAGS = -g CFLAGS = -g
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
@ -19,22 +19,20 @@ CFLAGS = -g
# and handle these quantities appropriately. As a consequence, one # and handle these quantities appropriately. As a consequence, one
# should not compile LAPACK with flags such as -ffpe-trap=overflow. # should not compile LAPACK with flags such as -ffpe-trap=overflow.
# #
FORTRAN = gfortran -fimplicit-none -g -frecursive FC = gfortran
OPTS = FFLAGS = -fimplicit-none -g -frecursive
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -g -O0 -frecursive FFLAGS_NOOPT = $(FFLAGS) -O0
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = gfortran -g LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = ranlib RANLIB = ranlib
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -78,8 +76,8 @@ TIMER = INT_CPU_TIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,26 +11,24 @@ SHELL = /bin/sh
CC = icc CC = icc
CFLAGS = -O3 CFLAGS = -O3
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = ifort FC = ifort
OPTS = -O3 -fp-model strict -assume protect_parens FFLAGS = -O3 -fp-model strict -assume protect_parens
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -O0 -fp-model strict -assume protect_parens FFLAGS_NOOPT = -O0 -fp-model strict -assume protect_parens
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = ifort LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = ranlib RANLIB = ranlib
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -74,8 +72,8 @@ TIMER = EXT_ETIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,26 +11,24 @@ SHELL = /bin/sh
CC = pgcc CC = pgcc
CFLAGS = CFLAGS =
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = pgf95 FC = pgf95
OPTS = -O3 FFLAGS = -O3
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -O0 FFLAGS_NOOPT = -O0
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = $(FORTRAN) LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -74,8 +72,8 @@ TIMER = INT_CPU_TIME
# machine-specific, optimized BLAS library should be used whenever # machine-specific, optimized BLAS library should be used whenever
# possible.) # possible.)
# #
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -11,26 +11,24 @@ SHELL = /bin/sh
CC = pghpc CC = pghpc
CFLAGS = CFLAGS =
# Modify the FORTRAN and OPTS definitions to refer to the compiler # Modify the FC and FFLAGS definitions to the desired compiler
# and desired compiler options for your machine. NOOPT refers to # and desired compiler options for your machine. NOOPT refers to
# the compiler options desired when NO OPTIMIZATION is selected. # the compiler options desired when NO OPTIMIZATION is selected.
# #
FORTRAN = pghpf FC = pghpf
OPTS = -O4 -Mnohpfc -Mdclchk FFLAGS = -O4 -Mnohpfc -Mdclchk
DRVOPTS = $(OPTS) FFLAGS_DRV = $(FFLAGS)
NOOPT = -Mnohpfc -Mdclchk FFLAGS_NOOPT = -Mnohpfc -Mdclchk
# Define LOADER and LOADOPTS to refer to the loader and desired # Define LDFLAGS to the desired linker options for your machine.
# load options for your machine.
# #
LOADER = pghpf LDFLAGS =
LOADOPTS =
# The archiver and the flag(s) to use when building an archive # The archiver and the flag(s) to use when building an archive
# (library). If your system has no ranlib, set RANLIB = echo. # (library). If your system has no ranlib, set RANLIB = echo.
# #
ARCH = ar AR = ar
ARCHFLAGS = cr ARFLAGS = cr
RANLIB = echo RANLIB = echo
# Timer for the SECOND and DSECND routines # Timer for the SECOND and DSECND routines
@ -75,8 +73,8 @@ TIMER = EXT_ETIME
# possible.) # possible.)
# #
#BLASLIB = -lessl #BLASLIB = -lessl
BLASLIB = ../../librefblas.a BLASLIB = $(TOPSRCDIR)/librefblas.a
CBLASLIB = ../../libcblas.a CBLASLIB = $(TOPSRCDIR)/libcblas.a
LAPACKLIB = liblapack.a LAPACKLIB = $(TOPSRCDIR)/liblapack.a
TMGLIB = libtmglib.a TMGLIB = $(TOPSRCDIR)/libtmglib.a
LAPACKELIB = liblapacke.a LAPACKELIB = $(TOPSRCDIR)/liblapacke.a

View File

@ -28,6 +28,7 @@
* *
*> \param[in] CMACH *> \param[in] CMACH
*> \verbatim *> \verbatim
*> CMACH is CHARACTER*1
*> Specifies the value to be returned by SLAMCH: *> Specifies the value to be returned by SLAMCH:
*> = 'E' or 'e', SLAMCH := eps *> = 'E' or 'e', SLAMCH := eps
*> = 'S' or 's , SLAMCH := sfmin *> = 'S' or 's , SLAMCH := sfmin