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