make.inc.pgi

来自「famous linear algebra library (LAPACK) p」· PGI 代码 · 共 101 行

PGI
101
字号
####################################################################
#  LAPACK make include file for PGI.                               #
#  LAPACK, Version 3.1.1                                           #
#  June 2007                                                       #
####################################################################
#
# See the INSTALL/ directory for more examples.
#

#
# Shell to be used.
#
SHELL = cmd.exe /Q /C

#
# Command to be used for deletion.
#
DEL = del /Q /F

#
# Compiler flags to be used to create object files.
#
CFLAGS	= -c

#
# Null variable, being used in archive commands to handle space issue.
#
n=

#
# Flags to be used to name object files.
#
OBJFLAGS = -o $n

#
# Flags to be used to name executables.
#
EXEFLAGS  = -o $n

#
# Machine Architecture.
#
# The library names are suffixed with machine architecture.
# The optimization options also differ based on machine architecture.
# Compiler flags to be used differ based on machine architecture.
#
FORTRAN  = pgf77
!ifdef MACHINE_ARCH_64
PLAT = _WIN64
OPTS     = -tp=amd64 -fast -Mipa=fast
!else
PLAT = _WIN32
OPTS     = -tp=k8-32 -fast -Mipa=fast
CFLAGS = $(CFLAGS) -Munix
!endif

DRVOPTS  = $(OPTS)

# 
# Options to disable compiler optimizations.
#
NOOPT    = -O0

#
# Fortran loader and it's options.
#
LOADER   = pgf77
LOADOPTS =

#
# Timer for the SECOND and DSECND routines
#
# Default : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME
TIMER    = EXT_ETIME
# For RS6K : SECOND and DSECND will use a call to the EXTERNAL FUNCTION ETIME_
# TIMER    = EXT_ETIME_
# For gfortran compiler: SECOND and DSECND will use a call to the INTERNAL FUNCTION ETIME
#TIMER    = INT_ETIME 
# If your Fortran compiler does not provide etime (like Nag Fortran Compiler, etc...)
# SECOND and DSECND will use a call to the INTERNAL FUNCTION CPU_TIME 
#TIMER    = INT_CPU_TIME
# If neither of this works...you can use the NONE value... In that case, SECOND and DSECND will always return 0
#TIMER     = NONE
#

#
# The archiver and the flag(s) to use when building archive (library).
#
ARCH     = ar
ARCHFLAGS= cr $n
RANLIB   = ranlib

#
# The location of the libraries to which you will link.
#
BLASLIB      = $(BLASLIB_ABSPATH)
LAPACKLIB    = lapack$(PLAT).lib
TMGLIB       = tmglib$(PLAT).lib
EIGSRCLIB    = eigsrc$(PLAT).lib
LINSRCLIB    = linsrc$(PLAT).lib

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?