| 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 | # F77 - Fortran compiler
|
|---|
| 19 | # FFLAGS - Fortran compilation arguments
|
|---|
| 20 | # F_INC - any -I arguments required for compiling Fortran
|
|---|
| 21 | # FLINK - Fortran linker
|
|---|
| 22 | # FLINKFLAGS - Fortran linker arguments
|
|---|
| 23 | # F_LIB - any -L and -l arguments required for linking Fortran
|
|---|
| 24 | #
|
|---|
| 25 | # compilations are done with $(F77) $(F_INC) $(FFLAGS) or
|
|---|
| 26 | # $(F77) $(FFLAGS)
|
|---|
| 27 | # linking is done with $(FLINK) $(F_LIB) $(FLINKFLAGS)
|
|---|
| 28 | #---------------------------------------------------------------------------
|
|---|
| 29 |
|
|---|
| 30 | #---------------------------------------------------------------------------
|
|---|
| 31 | # This is the fortran compiler used for Fortran programs
|
|---|
| 32 | #---------------------------------------------------------------------------
|
|---|
| 33 | F77 = f77 -64
|
|---|
| 34 | # This links fortran programs; usually the same as ${F77}
|
|---|
| 35 | FLINK = $(F77)
|
|---|
| 36 |
|
|---|
| 37 | #---------------------------------------------------------------------------
|
|---|
| 38 | # These macros are passed to the linker
|
|---|
| 39 | #---------------------------------------------------------------------------
|
|---|
| 40 | F_LIB =
|
|---|
| 41 |
|
|---|
| 42 | #---------------------------------------------------------------------------
|
|---|
| 43 | # These macros are passed to the compiler
|
|---|
| 44 | #---------------------------------------------------------------------------
|
|---|
| 45 | F_INC =
|
|---|
| 46 |
|
|---|
| 47 | #---------------------------------------------------------------------------
|
|---|
| 48 | # Global *compile time* flags for Fortran programs
|
|---|
| 49 | #---------------------------------------------------------------------------
|
|---|
| 50 | FFLAGS = -O3 -mp
|
|---|
| 51 | # FFLAGS = -g
|
|---|
| 52 |
|
|---|
| 53 | #---------------------------------------------------------------------------
|
|---|
| 54 | # Global *link time* flags. Flags for increasing maximum executable
|
|---|
| 55 | # size usually go here.
|
|---|
| 56 | #---------------------------------------------------------------------------
|
|---|
| 57 | FLINKFLAGS = -O3 -mp
|
|---|
| 58 | #FLINKFLAGS =
|
|---|
| 59 |
|
|---|
| 60 |
|
|---|
| 61 | #---------------------------------------------------------------------------
|
|---|
| 62 | # Parallel C:
|
|---|
| 63 | #
|
|---|
| 64 | # For IS, which is in C, the following must be defined:
|
|---|
| 65 | #
|
|---|
| 66 | # CC - C compiler
|
|---|
| 67 | # CFLAGS - C compilation arguments
|
|---|
| 68 | # C_INC - any -I arguments required for compiling C
|
|---|
| 69 | # CLINK - C linker
|
|---|
| 70 | # CLINKFLAGS - C linker flags
|
|---|
| 71 | # C_LIB - any -L and -l arguments required for linking C
|
|---|
| 72 | #
|
|---|
| 73 | # compilations are done with $(CC) $(C_INC) $(CFLAGS) or
|
|---|
| 74 | # $(CC) $(CFLAGS)
|
|---|
| 75 | # linking is done with $(CLINK) $(C_LIB) $(CLINKFLAGS)
|
|---|
| 76 | #---------------------------------------------------------------------------
|
|---|
| 77 |
|
|---|
| 78 | #---------------------------------------------------------------------------
|
|---|
| 79 | # This is the C compiler used for C programs
|
|---|
| 80 | #---------------------------------------------------------------------------
|
|---|
| 81 | CC = cc -64
|
|---|
| 82 | # This links C programs; usually the same as ${CC}
|
|---|
| 83 | CLINK = $(CC)
|
|---|
| 84 |
|
|---|
| 85 | #---------------------------------------------------------------------------
|
|---|
| 86 | # These macros are passed to the linker
|
|---|
| 87 | #---------------------------------------------------------------------------
|
|---|
| 88 | C_LIB =
|
|---|
| 89 |
|
|---|
| 90 | #---------------------------------------------------------------------------
|
|---|
| 91 | # These macros are passed to the compiler
|
|---|
| 92 | #---------------------------------------------------------------------------
|
|---|
| 93 | C_INC =
|
|---|
| 94 |
|
|---|
| 95 | #---------------------------------------------------------------------------
|
|---|
| 96 | # Global *compile time* flags for C programs
|
|---|
| 97 | #---------------------------------------------------------------------------
|
|---|
| 98 | CFLAGS = -O3 -mp
|
|---|
| 99 | # CFLAGS = -g
|
|---|
| 100 |
|
|---|
| 101 | #---------------------------------------------------------------------------
|
|---|
| 102 | # Global *link time* flags. Flags for increasing maximum executable
|
|---|
| 103 | # size usually go here.
|
|---|
| 104 | #---------------------------------------------------------------------------
|
|---|
| 105 | CLINKFLAGS = -O3 -mp
|
|---|
| 106 |
|
|---|
| 107 |
|
|---|
| 108 | #---------------------------------------------------------------------------
|
|---|
| 109 | # Utilities C:
|
|---|
| 110 | #
|
|---|
| 111 | # This is the C compiler used to compile C utilities. Flags required by
|
|---|
| 112 | # this compiler go here also; typically there are few flags required; hence
|
|---|
| 113 | # there are no separate macros provided for such flags.
|
|---|
| 114 | #---------------------------------------------------------------------------
|
|---|
| 115 | UCC = cc
|
|---|
| 116 |
|
|---|
| 117 |
|
|---|
| 118 | #---------------------------------------------------------------------------
|
|---|
| 119 | # Destination of executables, relative to subdirs of the main directory. .
|
|---|
| 120 | #---------------------------------------------------------------------------
|
|---|
| 121 | BINDIR = ../bin
|
|---|
| 122 |
|
|---|
| 123 |
|
|---|
| 124 | #---------------------------------------------------------------------------
|
|---|
| 125 | # The variable RAND controls which random number generator
|
|---|
| 126 | # is used. It is described in detail in README.install.
|
|---|
| 127 | # Use "randi8" unless there is a reason to use another one.
|
|---|
| 128 | # Other allowed values are "randi8_safe", "randdp" and "randdpvec"
|
|---|
| 129 | #---------------------------------------------------------------------------
|
|---|
| 130 | RAND = randi8
|
|---|
| 131 | # The following is highly reliable but may be slow:
|
|---|
| 132 | # RAND = randdp
|
|---|
| 133 |
|
|---|
| 134 |
|
|---|
| 135 | #---------------------------------------------------------------------------
|
|---|
| 136 | # The variable WTIME is the name of the wtime source code module in the
|
|---|
| 137 | # NPB3.x/common directory.
|
|---|
| 138 | # For most machines, use wtime.c
|
|---|
| 139 | # For SGI power challenge: use wtime_sgi64.c
|
|---|
| 140 | #---------------------------------------------------------------------------
|
|---|
| 141 | WTIME = wtime_sgi64.c
|
|---|
| 142 |
|
|---|
| 143 |
|
|---|
| 144 | #---------------------------------------------------------------------------
|
|---|
| 145 | # Enable if either Cray or IBM:
|
|---|
| 146 | # (no such flag for most machines: see common/wtime.h)
|
|---|
| 147 | # This is used by the C compiler to pass the machine name to common/wtime.h,
|
|---|
| 148 | # where the C/Fortran binding interface format is determined
|
|---|
| 149 | #---------------------------------------------------------------------------
|
|---|
| 150 | # MACHINE = -DCRAY
|
|---|
| 151 | # MACHINE = -DIBM
|
|---|
| 152 |
|
|---|
| 153 |
|
|---|