Statistiques
| Révision :

root / setup / Make.HPUX_FBLAS

Historique | Voir | Annoter | Télécharger (8,51 ko)

1
#  
2
#  -- High Performance Computing Linpack Benchmark (HPL)                
3
#     HPL - 2.0 - September 10, 2008                          
4
#     Antoine P. Petitet                                                
5
#     University of Tennessee, Knoxville                                
6
#     Innovative Computing Laboratory                                 
7
#     (C) Copyright 2000-2008 All Rights Reserved                       
8
#                                                                       
9
#  -- Copyright notice and Licensing terms:                             
10
#                                                                       
11
#  Redistribution  and  use in  source and binary forms, with or without
12
#  modification, are  permitted provided  that the following  conditions
13
#  are met:                                                             
14
#                                                                       
15
#  1. Redistributions  of  source  code  must retain the above copyright
16
#  notice, this list of conditions and the following disclaimer.        
17
#                                                                       
18
#  2. Redistributions in binary form must reproduce  the above copyright
19
#  notice, this list of conditions,  and the following disclaimer in the
20
#  documentation and/or other materials provided with the distribution. 
21
#                                                                       
22
#  3. All  advertising  materials  mentioning  features  or  use of this
23
#  software must display the following acknowledgement:                 
24
#  This  product  includes  software  developed  at  the  University  of
25
#  Tennessee, Knoxville, Innovative Computing Laboratory.             
26
#                                                                       
27
#  4. The name of the  University,  the name of the  Laboratory,  or the
28
#  names  of  its  contributors  may  not  be used to endorse or promote
29
#  products  derived   from   this  software  without  specific  written
30
#  permission.                                                          
31
#                                                                       
32
#  -- Disclaimer:                                                       
33
#                                                                       
34
#  THIS  SOFTWARE  IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
35
#  ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,  INCLUDING,  BUT NOT
36
#  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
37
#  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY
38
#  OR  CONTRIBUTORS  BE  LIABLE FOR ANY  DIRECT,  INDIRECT,  INCIDENTAL,
39
#  SPECIAL,  EXEMPLARY,  OR  CONSEQUENTIAL DAMAGES  (INCLUDING,  BUT NOT
40
#  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
41
#  DATA OR PROFITS; OR BUSINESS INTERRUPTION)  HOWEVER CAUSED AND ON ANY
42
#  THEORY OF LIABILITY, WHETHER IN CONTRACT,  STRICT LIABILITY,  OR TORT
43
#  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
44
#  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
45
# ######################################################################
46
#  
47
# ----------------------------------------------------------------------
48
# - shell --------------------------------------------------------------
49
# ----------------------------------------------------------------------
50
#
51
SHELL        = /bin/sh
52
#
53
CD           = cd
54
CP           = cp
55
LN_S         = ln -s
56
MKDIR        = mkdir
57
RM           = /bin/rm -f
58
TOUCH        = touch
59
#
60
# ----------------------------------------------------------------------
61
# - Platform identifier ------------------------------------------------
62
# ----------------------------------------------------------------------
63
#
64
ARCH         = HPUX
65
#
66
# ----------------------------------------------------------------------
67
# - HPL Directory Structure / HPL library ------------------------------
68
# ----------------------------------------------------------------------
69
#
70
TOPdir       = $(HOME)/hpl
71
INCdir       = $(TOPdir)/include
72
BINdir       = $(TOPdir)/bin/$(ARCH)
73
LIBdir       = $(TOPdir)/lib/$(ARCH)
74
#
75
HPLlib       = $(LIBdir)/libhpl.a 
76
#
77
# ----------------------------------------------------------------------
78
# - MPI directories - library ------------------------------------------
79
# ----------------------------------------------------------------------
80
# MPIinc tells the C compiler where to find the MPI header files, MPIlib
81
# is defined to be the name of the MPI library to be used. The variables
82
# MPIdir and MPIplat are only used for defining MPIinc and MPIlib).
83
#
84
MPIdir       = $(HOME)/local/mpi
85
MPIplat      = $(MPIdir)/hpux/ch_p4
86
#
87
MPIinc       = -I$(MPIdir)/include -I$(MPIplat)/include
88
MPIlib       = $(MPIplat)/lib/libmpich.a
89
#
90
# ----------------------------------------------------------------------
91
# - BLAS library -------------------------------------------------------
92
# ----------------------------------------------------------------------
93
#
94
BLASlib      = /usr/lib/pa1.1/libblas.a
95
#
96
# ----------------------------------------------------------------------
97
# - F77 / C interface --------------------------------------------------
98
# ----------------------------------------------------------------------
99
# You can skip this section  if and only if  you are not planning to use
100
# a  BLAS  library featuring a Fortran 77 interface.  Otherwise,  it  is
101
# necessary  to  fill out the  F2CDEFS  variable  with  the  appropriate 
102
# options.  **One and only one**  option should be chosen in **each** of
103
# the 3 following categories:
104
#
105
# 1) name space (How C calls a Fortran 77 routine)
106
#
107
# -DAdd_              : all lower case and a suffixed underscore  (Suns,
108
#                       Intel, ...),                           [default]
109
# -DNoChange          : all lower case (IBM RS6000),
110
# -DUpCase            : all upper case (Cray),
111
# -DAdd__             : the FORTRAN compiler in use is f2c.
112
#
113
# 2) C and Fortran 77 integer mapping
114
#
115
# -DF77_INTEGER=int   : Fortran 77 INTEGER is a C int,         [default]
116
# -DF77_INTEGER=long  : Fortran 77 INTEGER is a C long,
117
# -DF77_INTEGER=short : Fortran 77 INTEGER is a C short. 
118
#
119
# 3) Fortran 77 string handling
120
#
121
# -DStringSunStyle    : The string address is passed at the string loca-
122
#                       tion on the stack, and the string length is then
123
#                       passed as  an  F77_INTEGER  after  all  explicit
124
#                       stack arguments,                       [default]
125
# -DStringStructPtr   : The address  of  a  structure  is  passed  by  a 
126
#                       Fortran 77  string,  and the structure is of the
127
#                       form: struct {char *cp; F77_INTEGER len;},
128
# -DStringStructVal   : A structure is passed by value for each  Fortran
129
#                       77 string,  and  the  structure is  of the form: 
130
#                       struct {char *cp; F77_INTEGER len;},
131
# -DStringCrayStyle   : Special option for  Cray  machines,  which  uses 
132
#                       Cray  fcd  (fortran  character  descriptor)  for 
133
#                       interoperation. 
134
#
135
F2CDEFS      = -DNoChange -DF77_INTEGER=int -DStringSunStyle 
136
#
137
# ----------------------------------------------------------------------
138
# - HPL includes / libraries / specifics -------------------------------
139
# ----------------------------------------------------------------------
140
#
141
HPL_INCLUDES = -I$(INCdir) -I$(INCdir)/$(ARCH) $(MPIinc)
142
HPL_LIBS     = $(HPLlib) $(BLASlib)
143
#
144
# - Compile time options -----------------------------------------------
145
#
146
# -DHPL_COPY_L           force the copy of the panel L before bcast;
147
# -DHPL_CALL_CBLAS       call the cblas interface;
148
# -DHPL_DETAILED_TIMING  enable detailed timers;
149
#
150
# By default HPL will:
151
#    *) not copy L before broadcast,
152
#    *) call the BLAS F77 interface,
153
#    *) not display detailed timing information.
154
#
155
HPL_OPTS     =
156
# 
157
# ----------------------------------------------------------------------
158
#
159
HPL_DEFS     = $(HPL_INCLUDES) $(F2CDEFS) $(HPL_OPTS)
160
#
161
# ----------------------------------------------------------------------
162
# - Compilers / linkers - Optimization flags ---------------------------
163
# ----------------------------------------------------------------------
164
#
165
CC           = cc
166
CCNOOPT      = $(HPL_DEFS)
167
CCFLAGS      = $(HPL_DEFS) -D_INCLUDE_POSIX_SOURCE -DUseTimes -Aa +O4
168
#
169
# On some platforms,  it is necessary  to use the Fortran linker to find
170
# the Fortran internals used in the BLAS library.
171
#
172
LINKER       = cc
173
LINKFLAGS    = -Aa
174
#
175
ARCHIVER     = ar
176
ARFLAGS      = r
177
RANLIB       = echo
178
#
179
# ----------------------------------------------------------------------