Guest User

Untitled

a guest
Aug 4th, 2018
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Make 4.31 KB | None | 0 0
  1. # SE:
  2. # this was in Make.inc/Makefile.gfortran.PAR
  3. #
  4. #  This file is part of MUMPS 4.9.2, built on Thu Nov  5 07:05:08 UTC 2009
  5. #
  6. #Begin orderings
  7.  
  8. # NOTE that PORD is distributed within MUMPS by default. If you would like to
  9. # use other orderings, you need to obtain the corresponding package and modify
  10. # the variables below accordingly.
  11. # For example, to have Metis available within MUMPS:
  12. #          1/ download Metis and compile it
  13. #          2/ uncomment (suppress # in first column) lines
  14. #             starting with LMETISDIR,  LMETIS
  15. #          3/ add -Dmetis in line ORDERINGSF
  16. #             ORDERINGSF  = -Dpord -Dmetis
  17. #          4/ Compile and install MUMPS
  18. #             make clean; make   (to clean up previous installation)
  19. #
  20. #          Metis/ParMetis and SCOTCH/PT-SCOTCH (ver 5.1 and later) orderings are now available for MUMPS.
  21. #
  22.  
  23. #SCOTCHDIR  = ${HOME}/scotch_5.1_esmumps
  24. #SCOTCHDIR  = /home/eiser/src/scotch_5.1.12_esmumps
  25. # SE:
  26. SCOTCHDIR  = /usr
  27. ISCOTCH    = -I$(SCOTCHDIR)/include/scotch
  28. # You have to choose one among the following two lines depending on
  29. # the type of analysis you want to perform. If you want to perform only
  30. # sequential analysis choose the first (remember to add -Dscotch in the ORDERINGSF
  31. # variable below); for both parallel and sequential analysis choose the second
  32. # line (remember to add -Dptscotch in the ORDERINGSF variable below)
  33.  
  34. #LSCOTCH    = -L$(SCOTCHDIR)/lib -lesmumps -lscotch -lscotcherr
  35. LSCOTCH    = -L$(SCOTCHDIR)/lib -lptesmumps -lptscotch -lptscotcherr
  36.  
  37.  
  38. LPORDDIR = $(topdir)/PORD/lib/
  39. IPORD    = -I$(topdir)/PORD/include/
  40. LPORD    = -L$(LPORDDIR) -lpord
  41.  
  42. #LMETISDIR = /local/metis/
  43. # SE (parmetis is supplied by aur mpi vers):
  44. LMETISDIR = /usr/lib
  45. IMETIS = -I/usr/include
  46. #IMETIS    = # Metis doesn't need include files (Fortran interface avail.)
  47.  
  48. # You have to choose one among the following two lines depending on
  49. # the type of analysis you want to perform. If you want to perform only
  50. # sequential analysis choose the first (remember to add -Dmetis in the ORDERINGSF
  51. # variable below); for both parallel and sequential analysis choose the second
  52. # line (remember to add -Dparmetis in the ORDERINGSF variable below)
  53.  
  54. #LMETIS    = -L$(LMETISDIR) -lmetis
  55. LMETIS    = -L$(LMETISDIR) -lparmetis -lmetis
  56.  
  57. # The following variables will be used in the compilation process.
  58. # Please note that -Dptscotch and -Dparmetis imply -Dscotch and -Dmetis respectively.
  59. #ORDERINGSF = -Dscotch -Dmetis -Dpord -Dptscotch -Dparmetis
  60. # SE
  61. ORDERINGSF = -Dptscotch -Dparmetis -Dpord
  62. # ORDERINGSF = -Dptscotch -Dpord
  63. #ORDERINGSF  = -Dpord
  64. ORDERINGSC  = $(ORDERINGSF)
  65.  
  66. LORDERINGS = $(LMETIS) $(LPORD) $(LSCOTCH)
  67. IORDERINGSF = $(ISCOTCH)
  68. IORDERINGSC = $(IMETIS) $(IPORD) $(ISCOTCH)
  69.  
  70. #End orderings
  71. ########################################################################
  72. ################################################################################
  73.  
  74. PLAT    =
  75. RM = /bin/rm -f
  76. #SE:
  77. CC = mpicc
  78. FC = mpif90
  79. FL = mpif90
  80. AR = ar vr
  81. #RANLIB = ranlib
  82. RANLIB  = echo
  83. #SCALAP  = /local/SCALAPACK/libscalapack.a /local/BLACS/LIB/blacs_MPI-LINUX-0.a   /local/BLACS/LIB/blacsF77init_MPI-LINUX-0.a  /local/BLACS/LIB/blacs_MPI-LINUX-0.a
  84. # SE, I don't have any blacs libs there, although scalapack installer reports that blacs is contained in libscalapack
  85. SCALAP  = /opt/scalapack/lib/libscalapack.a
  86. # /opt/scalapack/lib/libreflapack.a /opt/scalapack/lib/librefblas.a
  87. #INCPAR = -I/usr/local/include
  88. # INCPAR = -I/usr/local/mpich/include
  89. # SE:
  90. INCPAR = -I/usr/include
  91.  
  92. # LIBPAR = $(SCALAP)  -L/usr/local/lib/ -llammpio -llamf77mpi -lmpi -llam -lutil -ldl -lpthread
  93. # LIBPAR = $(SCALAP)  -L/usr/local/mpich/lib/ -lmpich
  94. # SE:
  95. LIBPAR = $(SCALAP) # -L/usr/lib/openmpi/ -lmpi
  96. # See point 17 in the FAQ to have more details on the compilation of mpich with gfortran
  97. INCSEQ = -I$(topdir)/libseq
  98. LIBSEQ  =  -L$(topdir)/libseq -lmpiseq
  99. #LIBBLAS = -L/usr/lib/xmm/ -lf77blas -latlas
  100. #LIBBLAS = -L/local/BLAS -lblas
  101. # SE:
  102. LIBBLAS = -L/opt/scalapack/lib -lrefblas
  103. LIBOTHERS = -lpthread
  104. #Preprocessor defs for calling Fortran from C (-DAdd_ or -DAdd__ or -DUPPER)
  105. CDEFS   = -DAdd_
  106.  
  107. #Begin Optimized options
  108. OPTF    = -O -Dintel_ -DALLOW_NON_INIT
  109. #OPTF    = -O -DALLOW_NON_INIT
  110. OPTL    = -O
  111. OPTC    = -O
  112. #End Optimized options
  113. INC = $(INCPAR)
  114. LIB = $(LIBPAR)
  115. LIBSEQNEEDED =
Add Comment
Please, Sign In to add comment