%define label mytest #--------- Preprocessor ------------------------------------------------------- %ifndef %{bits} # EDIT to control 32 or 64 bit compilation. Or, % define bits 64 # you can set it on the command line using: %endif # 'runcpu --define bits=nn' %define os LINUX command_add_redirect = 1 flagsurl = $[top]/config/flags/gcc.xml ignore_errors = 1 iterations = 1 label = %{label}-m%{bits} line_width = 1020 log_line_width = 1020 mean_anyway = 1 output_format = txt,html,cfg,pdf,csv preenv = 1 reportable = 0 tune = base reportable = 0 verify_binaries = 0 intrate,fprate: copies = 1 # EDIT to change number of copies (see above) intspeed,fpspeed: threads = @@OpenMPThreads@@ # EDIT to change number of OpenMP threads (see above) #------- Compilers ------------------------------------------------------------ default: # EDIT: the directory where your compiler is installed LDFLAGS = @@LDFLAGS@@ preENV_KMP_LOCK_KIND=tas LIBS = @@LIBS@@ #preENV_LD_LIBRARY_PATH = %{gcc_dir}/lib64/:%{gcc_dir}/lib/:/lib64:%{ENV_LD_LIBRARY_PATH} CC = @@CompilerCC@@ # -std=c99 %{model} CXX = @@CompilerCXX@@ # %{model} FC = @@CompilerFC@@ # %{model} # How to say "Show me your version, please" CC_VERSION_OPTION = -v CXX_VERSION_OPTION = -v FC_VERSION_OPTION = -v default: %if %{bits} == 64 sw_base_ptrsize = 64-bit sw_peak_ptrsize = 64-bit %else sw_base_ptrsize = 32-bit sw_peak_ptrsize = 32-bit %endif #--------- Portability -------------------------------------------------------- default: # data model applies to all benchmarks %if %{bits} == 32 EXTRA_PORTABILITY = -D_FILE_OFFSET_BITS=64 %else EXTRA_PORTABILITY = -DSPEC_LP64 %endif 500.perlbench_r,600.perlbench_s: #lang='C' %if %{bits} == 32 % define suffix IA32 %else % define suffix X64 %endif PORTABILITY = -DSPEC_%{os}_%{suffix} 502.gcc_r,602.gcc_s: EXTRA_LDFLAGS = -Wl,-z,muldefs 602.gcc_s: EXTRA_COPTIMIZE = -fgnu89-inline 507.cactuBSSN_r,607.cactuBSSN_s: EXTRA_LIBS = -Wl,-z,muldefs -L%{gcc_dir}/lib -lrt -pthread 521.wrf_r,621.wrf_s: #lang='F,C' CPORTABILITY = -DSPEC_CASE_FLAG FPORTABILITY = -Mbyteswapio 523.xalancbmk_r,623.xalancbmk_s: #lang='CXX' PORTABILITY = -DSPEC_%{os} 526.blender_r: #lang='CXX,C' PORTABILITY = -funsigned-char -DSPEC_LINUX 527.cam4_r,627.cam4_s: #lang='F,C' PORTABILITY = -DSPEC_CASE_FLAG 628.pop2_s: #lang='F,C' CPORTABILITY = -DSPEC_CASE_FLAG FPORTABILITY = -Mbyteswapio @@SpecialFlags@@ %if %{bits} == 32 intspeed,fpspeed: fail_build = 1 %else intspeed,fpspeed: EXTRA_OPTIMIZE = fpspeed: preENV_OMP_STACKSIZE = 120M %endif default=base: OPTIMIZE = @@OPTIMIZE@@ intrate,intspeed=base: EXTRA_COPTIMIZE = -fno-strict-aliasing LDCFLAGS = -z muldefs