#============================================================================= # The following macros specify the name and location of libraries required by # the ScaLAPACK examples. #============================================================================= # --------------------------------------------------------------------------- # The communication library your BLACS have been written for. # --------------------------------------------------------------------------- COMMLIB = MPI # ------------------------------------------------------------- # The platform identifier to suffix to the end of library names # ------------------------------------------------------------- PLAT = x86-64 # -------------------------------------- # Name and location of the BLACS library # -------------------------------------- BLACSDIR = /usr/common/acts/SCALAPACK/1.7 BLACSDBGLVL = 0 BLACSFINIT = $(BLACSDIR)/blacsF77init_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a BLACSCINIT = $(BLACSDIR)/blacsCinit_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a BLACSLIB = $(BLACSDIR)/blacs_$(COMMLIB)-$(PLAT)-$(BLACSDBGLVL).a # ------------------------------------- # Name and location of the BLAS library # ------------------------------------- BLASLIB = $(ACML) ### This requires a "module load acml" ### # -------------------------------------- # Name and location of the PBLAS library # -------------------------------------- PBLASDIR = /usr/common/acts/SCALAPACK/1.7 PBLASLIB = $(PBLASDIR)/pblas_$(PLAT).a # ------------------------------------------ # Name and location of the SCALAPACK library # ------------------------------------------ SCALAPACKDIR = /usr/common/acts/SCALAPACK/1.7 SCALAPACKLIB = $(SCALAPACKDIR)/scalapack_$(PLAT).a TOOLSLIB = $(SCALAPACKDIR)/tools_$(PLAT).a # --------------------------------- # Libraries required by the testers # --------------------------------- BTLIBS = $(BLACSFINIT) $(BLACSLIB) $(BLACSFINIT) STLIBS = $(SCALAPACKLIB) $(BTLIBS) $(BLASLIB) #============================================================================= # The following macros specify compilers and linker/loaders options. Some of # the fortran files need to be compiled with no optimization. This is the # FCNO_OPTFLAG. #============================================================================= FC = mpif90 FCNO_OPTFLAGS = -OPT:IEEE_arithmetic=1 -OPT:IEEE_NaN_inf=ON FCFLAGS = $(FCNO_OPTFLAGS) -O3 FCLOADER = $(FC) FCLOADFLAGS = CC = mpicc CCFLAGS = -O3 CCLOADER = $(CC) CCLOADFLAGS = F90 = mpif90 F90FORM = -freeform