Make.ia32.in 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. #
  2. # This is just a sample Make.
  3. # The user may need to edit:
  4. # 1.) TOPdir
  5. # 2.) MPI variables (MPdir,MPinc,MPlib)
  6. # 3.) MKL BLAS variables (LAdir, LAinc, LAlib)
  7. # 4.) The Compiler and Compiler/Linker Options (CC,CCFLAGS)
  8. #
  9. #
  10. # -- High Performance Computing Linpack Benchmark (HPL)
  11. # HPL - 1.0a - January 20, 2004
  12. # Antoine P. Petitet
  13. # University of Tennessee, Knoxville
  14. # Innovative Computing Laboratories
  15. # (C) Copyright 2000-2004 All Rights Reserved
  16. #
  17. # -- Copyright notice and Licensing terms:
  18. #
  19. # Redistribution and use in source and binary forms, with or without
  20. # modification, are permitted provided that the following conditions
  21. # are met:
  22. #
  23. # 1. Redistributions of source code must retain the above copyright
  24. # notice, this list of conditions and the following disclaimer.
  25. #
  26. # 2. Redistributions in binary form must reproduce the above copyright
  27. # notice, this list of conditions, and the following disclaimer in the
  28. # documentation and/or other materials provided with the distribution.
  29. #
  30. # 3. All advertising materials mentioning features or use of this
  31. # software must display the following acknowledgement:
  32. # This product includes software developed at the University of
  33. # Tennessee, Knoxville, Innovative Computing Laboratories.
  34. #
  35. # 4. The name of the University, the name of the Laboratory, or the
  36. # names of its contributors may not be used to endorse or promote
  37. # products derived from this software without specific written
  38. # permission.
  39. #
  40. # -- Disclaimer:
  41. #
  42. # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  43. # ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  44. # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  45. # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
  46. # OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  47. # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  48. # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  49. # DATA OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  50. # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  51. # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  52. # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  53. # ######################################################################
  54. #
  55. # ----------------------------------------------------------------------
  56. # - shell --------------------------------------------------------------
  57. # ----------------------------------------------------------------------
  58. #
  59. SHELL = /bin/sh
  60. #
  61. CD = cd
  62. CP = cp
  63. LN_S = ln -fs
  64. MKDIR = mkdir -p
  65. RM = /bin/rm -f
  66. TOUCH = touch
  67. #
  68. # ----------------------------------------------------------------------
  69. # - Platform identifier ------------------------------------------------
  70. # ----------------------------------------------------------------------
  71. #
  72. ARCH = ia32
  73. #
  74. # ----------------------------------------------------------------------
  75. # - HPL Directory Structure / HPL library ------------------------------
  76. # ----------------------------------------------------------------------
  77. #
  78. # Set TOPdir to the location where this is being built
  79. TOPdir = _INSERT_ROOTDIR_INSERT_
  80. INCdir = $(TOPdir)/include
  81. BINdir = $(TOPdir)/bin/$(ARCH)
  82. LIBdir = $(TOPdir)/lib/$(ARCH)
  83. #
  84. HPLlib = $(LIBdir)/libhpl.a
  85. ifeq "$(version)" "hybrid"
  86. HPLlibHybrid = $(TOPdir)/lib_hybrid/$(ARCH)/libhpl_hybrid.a
  87. else
  88. HPLlibHybrid =
  89. endif
  90. #
  91. # ----------------------------------------------------------------------
  92. # - Message Passing library (MPI) --------------------------------------
  93. # ----------------------------------------------------------------------
  94. # MPinc tells the C compiler where to find the Message Passing library
  95. # header files, MPlib is defined to be the name of the library to be
  96. # used. The variable MPdir is only used for defining MPinc and MPlib.
  97. #
  98. #MPdir = /opt/intel/mpi/3.0
  99. #MPinc = -I$(MPdir)/include
  100. #MPlib = $(MPdir)/lib/libmpi.a
  101. #MPlib = $(MPdir)/lib/libmpich.a
  102. #
  103. # ----------------------------------------------------------------------
  104. # - Linear Algebra library (BLAS) -----------------------------
  105. # ----------------------------------------------------------------------
  106. # LAinc tells the C compiler where to find the Linear Algebra library
  107. # header files, LAlib is defined to be the name of the library to be
  108. # used. The variable LAdir is only used for defining LAinc and LAlib.
  109. #
  110. #LAdir = $(TOPdir)/../../lib/32
  111. #LAdir =/opt/intel/cmkl/10.0.3.020/lib/32
  112. #LAdir = /opt/intel/mkl/8.1.1/lib/32
  113. LAinc = -I/opt/intel/mkl/8.1.1/include
  114. ifeq "$(version)" "hybrid"
  115. #LAlib = $(LAdir)/libmkl_intel.a $(LAdir)/libmkl_intel_thread.a $(LAdir)/libmkl_core.a $(LAdir)/libguide.a -lpthread $(HPLlibHybrid)
  116. else
  117. #LAlib = $(LAdir)/libmkl_intel.a $(LAdir)/libmkl_sequential.a $(LAdir)/libmkl_core.a
  118. LAlib = -L/shared/intel/mkl/8.1.1/lib/32 -lmkl_ia32 -lmkl_lapack -lmkl_solver -openmp
  119. endif
  120. #
  121. # ----------------------------------------------------------------------
  122. # - F77 / C interface --------------------------------------------------
  123. # ----------------------------------------------------------------------
  124. # You can skip this section if and only if you are not planning to use
  125. # a BLAS library featuring a Fortran 77 interface. Otherwise, it is
  126. # necessary to fill out the F2CDEFS variable with the appropriate
  127. # options. **One and only one** option should be chosen in **each** of
  128. # the 3 following categories:
  129. #
  130. # 1) name space (How C calls a Fortran 77 routine)
  131. #
  132. # -DAdd_ : all lower case and a suffixed underscore (Suns,
  133. # Intel, ...), [default]
  134. # -DNoChange : all lower case (IBM RS6000),
  135. # -DUpCase : all upper case (Cray),
  136. # -DAdd__ : the FORTRAN compiler in use is f2c.
  137. #
  138. # 2) C and Fortran 77 integer mapping
  139. #
  140. # -DF77_INTEGER=int : Fortran 77 INTEGER is a C int, [default]
  141. # -DF77_INTEGER=long : Fortran 77 INTEGER is a C long,
  142. # -DF77_INTEGER=short : Fortran 77 INTEGER is a C short.
  143. #
  144. # 3) Fortran 77 string handling
  145. #
  146. # -DStringSunStyle : The string address is passed at the string loca-
  147. # tion on the stack, and the string length is then
  148. # passed as an F77_INTEGER after all explicit
  149. # stack arguments, [default]
  150. # -DStringStructPtr : The address of a structure is passed by a
  151. # Fortran 77 string, and the structure is of the
  152. # form: struct {char *cp; F77_INTEGER len;},
  153. # -DStringStructVal : A structure is passed by value for each Fortran
  154. # 77 string, and the structure is of the form:
  155. # struct {char *cp; F77_INTEGER len;},
  156. # -DStringCrayStyle : Special option for Cray machines, which uses
  157. # Cray fcd (fortran character descriptor) for
  158. # interoperation.
  159. #
  160. #F2CDEFS = -DAdd__ -DF77_INTEGER=int -DStringSunStyle
  161. F2CDEFS = -DF77_INTEGER=int -DStringSunStyle
  162. #F2CDEFS = -DF77_INTEGER=int
  163. #
  164. # ----------------------------------------------------------------------
  165. # - HPL includes / libraries / specifics -------------------------------
  166. # ----------------------------------------------------------------------
  167. #
  168. HPL_INCLUDES = -I$(INCdir) -I$(INCdir)/$(ARCH) $(LAinc) $(MPinc)
  169. HPL_LIBS = $(HPLlib) $(LAlib) $(MPlib)
  170. #
  171. # - Compile time options -----------------------------------------------
  172. #
  173. # -DHPL_COPY_L force the copy of the panel L before bcast;
  174. # -DHPL_CALL_CBLAS call the cblas interface;
  175. # -DHPL_DETAILED_TIMING enable detailed timers;
  176. # -DASYOUGO enable timing information as you go (nonintrusive)
  177. # -DASYOUGO2 slightly intrusive timing information
  178. # -DASYOUGO2_DISPLAY display detailed DGEMM information
  179. # -DENDEARLY end the problem early
  180. # -DFASTSWAP insert to use DLASWP instead of HPL code
  181. # -DHYBRID use for Hybrid OpenMP/MPI mode
  182. #
  183. # By default HPL will:
  184. # *) not copy L before broadcast,
  185. # *) call the BLAS Fortran 77 interface,
  186. # *) not display detailed timing information.
  187. #
  188. #
  189. #HPL_OPTS = -DHPL_CALL_CBLAS
  190. # ----------------------------------------------------------------------
  191. #
  192. HPL_DEFS = $(F2CDEFS) $(HPL_OPTS) $(HPL_INCLUDES)
  193. #
  194. # ----------------------------------------------------------------------
  195. # - Compilers / linkers - Optimization flags ---------------------------
  196. # ----------------------------------------------------------------------
  197. #
  198. # Comment in the next two lines for GNU Compilers:
  199. # CC = mpicc
  200. # CCFLAGS = $(HPL_DEFS) -fomit-frame-pointer -O3 -funroll-loops -W -Wall
  201. # Comment in the next two lines for Intel Compilers:
  202. CC = $(CCOMPILE)
  203. ifeq "$(CC)" "icc"
  204. # NOCOMPCHK=-nocompchk
  205. NOCOMPCHK=
  206. endif
  207. ifeq "$(version)" "hybrid"
  208. MKLINCDIR = -I"$(TOPdir)/../../include"
  209. CCFLAGS = $(HPL_DEFS) $(MKLINCDIR) -O3 -i-static $(CFLAGS) $(NOCOMPCHK)
  210. else
  211. CCFLAGS = $(HPL_DEFS) -O3 -w $(CFLAGS) $(NOCOMPCHK)
  212. endif
  213. #
  214. CCNOOPT = $(HPL_DEFS) -O0 -w $(NOCOMPCHK)
  215. #
  216. # On some platforms, it is necessary to use the Fortran linker to find
  217. # the Fortran internals used in the BLAS library.
  218. #
  219. LINKER = $(CC)
  220. ifeq "$(version)" "hybrid"
  221. LINKFLAGS = $(CCFLAGS)
  222. else
  223. LINKFLAGS = $(CCFLAGS)
  224. endif
  225. #
  226. ARCHIVER = ar
  227. ARFLAGS = r
  228. RANLIB = echo
  229. #
  230. # ----------------------------------------------------------------------
  231. MAKE = make TOPdir=$(TOPdir)