1 diff --git a/NPB3.3-OMP/config/make.def b/NPB3.3-OMP/config/make.def 2 new file mode 100644 3 index 0000000..afffe7d 4 --- /dev/null 5 +++ b/NPB3.3-OMP/config/make.def 6 @@ -0,0 +1,161 @@ 7 +#--------------------------------------------------------------------------- 8 +# 9 +# SITE- AND/OR PLATFORM-SPECIFIC DEFINITIONS. 10 +# 11 +#--------------------------------------------------------------------------- 12 + 13 +#--------------------------------------------------------------------------- 14 +# Items in this file will need to be changed for each platform. 15 +#--------------------------------------------------------------------------- 16 + 17 +#--------------------------------------------------------------------------- 18 +# Parallel Fortran: 19 +# 20 +# For CG, EP, FT, MG, LU, SP, BT and UA, which are in Fortran, the following 21 +# must be defined: 22 +# 23 +# F77 - Fortran compiler 24 +# FFLAGS - Fortran compilation arguments 25 +# F_INC - any -I arguments required for compiling Fortran 26 +# FLINK - Fortran linker 27 +# FLINKFLAGS - Fortran linker arguments 28 +# F_LIB - any -L and -l arguments required for linking Fortran 29 +# 30 +# compilations are done with $(F77) $(F_INC) $(FFLAGS) or 31 +# $(F77) $(FFLAGS) 32 +# linking is done with $(FLINK) $(F_LIB) $(FLINKFLAGS) 33 +#--------------------------------------------------------------------------- 34 + 35 +#--------------------------------------------------------------------------- 36 +# This is the fortran compiler used for Fortran programs 37 +#--------------------------------------------------------------------------- 38 +F77 = gfortran 39 +# This links fortran programs; usually the same as ${F77} 40 +FLINK = $(F77) 41 + 42 +#--------------------------------------------------------------------------- 43 +# These macros are passed to the linker 44 +#--------------------------------------------------------------------------- 45 +F_LIB = 46 + 47 +#--------------------------------------------------------------------------- 48 +# These macros are passed to the compiler 49 +#--------------------------------------------------------------------------- 50 +F_INC = 51 + 52 +#--------------------------------------------------------------------------- 53 +# Global *compile time* flags for Fortran programs 54 +#--------------------------------------------------------------------------- 55 +FFLAGS = -O -fopenmp 56 + 57 +#--------------------------------------------------------------------------- 58 +# Global *link time* flags. Flags for increasing maximum executable 59 +# size usually go here. 60 +#--------------------------------------------------------------------------- 61 +FLINKFLAGS = -O -fopenmp 62 + 63 + 64 +#--------------------------------------------------------------------------- 65 +# Parallel C: 66 +# 67 +# For IS and DC, which are in C, the following must be defined: 68 +# 69 +# CC - C compiler 70 +# CFLAGS - C compilation arguments 71 +# C_INC - any -I arguments required for compiling C 72 +# CLINK - C linker 73 +# CLINKFLAGS - C linker flags 74 +# C_LIB - any -L and -l arguments required for linking C 75 +# 76 +# compilations are done with $(CC) $(C_INC) $(CFLAGS) or 77 +# $(CC) $(CFLAGS) 78 +# linking is done with $(CLINK) $(C_LIB) $(CLINKFLAGS) 79 +#--------------------------------------------------------------------------- 80 + 81 +#--------------------------------------------------------------------------- 82 +# This is the C compiler used for C programs 83 +#--------------------------------------------------------------------------- 84 +CC = cc 85 +# This links C programs; usually the same as ${CC} 86 +CLINK = $(CC) 87 + 88 +#--------------------------------------------------------------------------- 89 +# These macros are passed to the linker 90 +#--------------------------------------------------------------------------- 91 +C_LIB = -lm 92 + 93 +#--------------------------------------------------------------------------- 94 +# These macros are passed to the compiler 95 +#--------------------------------------------------------------------------- 96 +C_INC = 97 + 98 +#--------------------------------------------------------------------------- 99 +# Global *compile time* flags for C programs 100 +# DC inspects the following flags (preceded by "-D"): 101 +# 102 +# IN_CORE - computes all views and checksums in main memory (if there is 103 +# enough memory) 104 +# 105 +# VIEW_FILE_OUTPUT - forces DC to write the generated views to disk 106 +# 107 +# OPTIMIZATION - turns on some nonstandard DC optimizations 108 +# 109 +# _FILE_OFFSET_BITS=64 110 +# _LARGEFILE64_SOURCE - are standard compiler flags which allow to work with 111 +# files larger than 2GB. 112 +#--------------------------------------------------------------------------- 113 +CFLAGS = -O 114 + 115 +#--------------------------------------------------------------------------- 116 +# Global *link time* flags. Flags for increasing maximum executable 117 +# size usually go here. 118 +#--------------------------------------------------------------------------- 119 +CLINKFLAGS = -O 120 + 121 + 122 +#--------------------------------------------------------------------------- 123 +# Utilities C: 124 +# 125 +# This is the C compiler used to compile C utilities. Flags required by 126 +# this compiler go here also; typically there are few flags required; hence 127 +# there are no separate macros provided for such flags. 128 +#--------------------------------------------------------------------------- 129 +UCC = cc 130 + 131 + 132 +#--------------------------------------------------------------------------- 133 +# Destination of executables, relative to subdirs of the main directory. . 134 +#--------------------------------------------------------------------------- 135 +BINDIR = ../bin 136 + 137 + 138 +#--------------------------------------------------------------------------- 139 +# The variable RAND controls which random number generator 140 +# is used. It is described in detail in README.install. 141 +# Use "randi8" unless there is a reason to use another one. 142 +# Other allowed values are "randi8_safe", "randdp" and "randdpvec" 143 +#--------------------------------------------------------------------------- 144 +RAND = randi8 145 +# The following is highly reliable but may be slow: 146 +# RAND = randdp 147 + 148 + 149 +#--------------------------------------------------------------------------- 150 +# The variable WTIME is the name of the wtime source code module in the 151 +# common directory. 152 +# For most machines, use wtime.c 153 +# For SGI power challenge: use wtime_sgi64.c 154 +#--------------------------------------------------------------------------- 155 +WTIME = wtime.c 156 + 157 + 158 +#--------------------------------------------------------------------------- 159 +# Enable if either Cray (not Cray-X1) or IBM: 160 +# (no such flag for most machines: see common/wtime.h) 161 +# This is used by the C compiler to pass the machine name to common/wtime.h, 162 +# where the C/Fortran binding interface format is determined 163 +#--------------------------------------------------------------------------- 164 +# MACHINE = -DCRAY 165 +# MACHINE = -DIBM 166 + 167 + 168 diff --git a/NPB3.3-OMP/config/suite.def b/NPB3.3-OMP/config/suite.def 169 new file mode 100644 170 index 0000000..7342195 171 --- /dev/null 172 +++ b/NPB3.3-OMP/config/suite.def 173 @@ -0,0 +1,60 @@ 174 +# config/suite.def 175 +# This file is used to build several benchmarks with a single command. 176 +# Typing "make suite" in the main directory will build all the benchmarks 177 +# specified in this file. 178 +# Each line of this file contains a benchmark name and the class. 179 +# The name is one of "cg", "is", "dc", "ep", mg", "ft", "sp", 180 +# "bt", "lu", and "ua". 181 +# The class is one of "S", "W", "A" through "E" 182 +# (except that no classes C,D,E for DC and no class E for IS and UA). 183 +# No blank lines. 184 +# The following example builds sample sizes of all benchmarks. 185 +ft A 186 +ft B 187 +ft S 188 +ft W 189 +mg A 190 +mg B 191 +mg S 192 +mg W 193 +sp A 194 +sp B 195 +sp C 196 +sp S 197 +sp W 198 +lu A 199 +lu B 200 +lu C 201 +lu S 202 +lu W 203 +bt A 204 +bt B 205 +bt C 206 +bt S 207 +bt W 208 +is A 209 +is B 210 +is C 211 +is S 212 +is W 213 +ep A 214 +ep B 215 +ep C 216 +ep D 217 +ep E 218 +ep S 219 +ep W 220 +cg A 221 +cg B 222 +cg C 223 +cg S 224 +cg W 225 +ua A 226 +ua B 227 +ua C 228 +ua S 229 +ua W 230 +dc A 231 +dc B 232 +dc S 233 +dc W 234