Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Added our tweaked version of NAS benchmarks.
[simgrid.git] / examples / smpi / NAS / config / NAS.samples / make.def_sun_mpich
1 #---------------------------------------------------------------------------
2 #
3 #                SITE- AND/OR PLATFORM-SPECIFIC DEFINITIONS. 
4 #
5 #---------------------------------------------------------------------------
6
7 #---------------------------------------------------------------------------
8 # Items in this file will need to be changed for each platform.
9 # (Note these definitions are inconsistent with NPB2.1.)
10 #---------------------------------------------------------------------------
11
12 #---------------------------------------------------------------------------
13 # Parallel Fortran:
14 #
15 # For CG, EP, FT, MG, LU, SP and BT, which are in Fortran, the following must 
16 # be defined:
17 #
18 # MPIF77     - Fortran compiler
19 # FFLAGS     - Fortran compilation arguments
20 # FMPI_INC   - any -I arguments required for compiling MPI/Fortran 
21 # FLINK      - Fortran linker
22 # FLINKFLAGS - Fortran linker arguments
23 # FMPI_LIB   - any -L and -l arguments required for linking MPI/Fortran 
24
25 # compilations are done with $(MPIF77) $(FMPI_INC) $(FFLAGS) or
26 #                            $(MPIF77) $(FFLAGS)
27 # linking is done with       $(FLINK) $(FMPI_LIB) $(FLINKFLAGS)
28 #---------------------------------------------------------------------------
29
30 #---------------------------------------------------------------------------
31 # This is the fortran compiler used for MPI programs
32 #---------------------------------------------------------------------------
33 MPIF77 = mpif77
34 # This links MPI fortran programs; usually the same as ${MPIF77}
35 FLINK   = $(MPIF77)
36
37 #---------------------------------------------------------------------------
38 # These macros are passed to the linker to help link with MPI correctly
39 #---------------------------------------------------------------------------
40 FMPI_LIB  =
41
42 #---------------------------------------------------------------------------
43 # These macros are passed to the compiler to help find 'mpif.h'
44 #---------------------------------------------------------------------------
45 FMPI_INC =
46
47 #---------------------------------------------------------------------------
48 # Global *compile time* flags for Fortran programs
49 #---------------------------------------------------------------------------
50 FFLAGS  = -fast
51 # FFLAGS = -g
52
53 #---------------------------------------------------------------------------
54 # Global *link time* flags. Flags for increasing maximum executable 
55 # size usually go here. 
56 #---------------------------------------------------------------------------
57 FLINKFLAGS = -fast
58
59
60 #---------------------------------------------------------------------------
61 # Parallel C:
62 #
63 # For IS, which is in C, the following must be defined:
64 #
65 # MPICC      - C compiler 
66 # CFLAGS     - C compilation arguments
67 # CMPI_INC   - any -I arguments required for compiling MPI/C 
68 # CLINK      - C linker
69 # CLINKFLAGS - C linker flags
70 # CMPI_LIB   - any -L and -l arguments required for linking MPI/C 
71 #
72 # compilations are done with $(MPICC) $(CMPI_INC) $(CFLAGS) or
73 #                            $(MPICC) $(CFLAGS)
74 # linking is done with       $(CLINK) $(CMPI_LIB) $(CLINKFLAGS)
75 #---------------------------------------------------------------------------
76
77 #---------------------------------------------------------------------------
78 # This is the C compiler used for MPI programs
79 #---------------------------------------------------------------------------
80 MPICC = mpicc
81 # This links MPI C programs; usually the same as ${MPICC}
82 CLINK   = $(MPICC)
83
84 #---------------------------------------------------------------------------
85 # These macros are passed to the linker to help link with MPI correctly
86 #---------------------------------------------------------------------------
87 CMPI_LIB  =
88
89 #---------------------------------------------------------------------------
90 # These macros are passed to the compiler to help find 'mpi.h'
91 #---------------------------------------------------------------------------
92 CMPI_INC =
93
94 #---------------------------------------------------------------------------
95 # Global *compile time* flags for C programs
96 #---------------------------------------------------------------------------
97 CFLAGS  = -fast
98 # CFLAGS = -g
99
100 #---------------------------------------------------------------------------
101 # Global *link time* flags. Flags for increasing maximum executable 
102 # size usually go here. 
103 #---------------------------------------------------------------------------
104 CLINKFLAGS = -fast
105
106
107 #---------------------------------------------------------------------------
108 # MPI dummy library:
109 #
110 # Uncomment if you want to use the MPI dummy library supplied by NAS instead 
111 # of the true message-passing library. The include file redefines several of
112 # the above macros. It also invokes make in subdirectory MPI_dummy. Make 
113 # sure that no spaces or tabs precede include.
114 #---------------------------------------------------------------------------
115 # include ../config/make.dummy
116
117
118 #---------------------------------------------------------------------------
119 # Utilities C:
120 #
121 # This is the C compiler used to compile C utilities.  Flags required by 
122 # this compiler go here also; typically there are few flags required; hence 
123 # there are no separate macros provided for such flags.
124 #---------------------------------------------------------------------------
125 CC      = cc -g
126
127
128 #---------------------------------------------------------------------------
129 # Destination of executables, relative to subdirs of the main directory. . 
130 #---------------------------------------------------------------------------
131 BINDIR  = ../bin
132
133
134 #---------------------------------------------------------------------------
135 # Some machines (e.g. Crays) have 128-bit DOUBLE PRECISION numbers, which
136 # is twice the precision required for the NPB suite. A compiler flag 
137 # (e.g. -dp) can usually be used to change DOUBLE PRECISION variables to
138 # 64 bits, but the MPI library may continue to send 128 bits. Short of
139 # recompiling MPI, the solution is to use MPI_REAL to send these 64-bit
140 # numbers, and MPI_COMPLEX to send their complex counterparts. Uncomment
141 # the following line to enable this substitution. 
142
143 # NOTE: IF THE I/O BENCHMARK IS BEING BUILT, WE USE CONVERTFLAG TO
144 #       SPECIFIY THE FORTRAN RECORD LENGTH UNIT. IT IS A SYSTEM-SPECIFIC
145 #       VALUE (USUALLY 1 OR 4). UNCOMMENT THE SECOND LINE AND SUBSTITUTE
146 #       THE CORRECT VALUE FOR "length".
147 #       IF BOTH 128-BIT DOUBLE PRECISION NUMBERS AND I/O ARE TO BE ENABLED,
148 #       UNCOMMENT THE THIRD LINE AND SUBSTITUTE THE CORRECT VALUE FOR
149 #       "length"
150 #---------------------------------------------------------------------------
151 # CONVERTFLAG   = -DCONVERTDOUBLE
152 CONVERTFLAG     = -DFORTRAN_REC_SIZE=1
153 # CONVERTFLAG   = -DCONVERTDOUBLE -DFORTRAN_REC_SIZE=length
154
155
156 #---------------------------------------------------------------------------
157 # The variable RAND controls which random number generator 
158 # is used. It is described in detail in Doc/README.install. 
159 # Use "randi8" unless there is a reason to use another one. 
160 # Other allowed values are "randi8_safe", "randdp" and "randdpvec"
161 #---------------------------------------------------------------------------
162 RAND   = randi8
163 # The following is highly reliable but may be slow:
164 # RAND   = randdp
165