# Invocation command line:
# /spec2017/bin/harness/runcpu --define default-platform-flags --copies 80 --configfile ic18.0-lin-core-avx2-rate-20170901.cfg --define smt-on --define cores=40 --define physicalfirst --define invoke_with_interleave --define drop_caches --tune base,peak --output_format all --nopower --runmode rate --tune base:peak --size refrate fprate
# output_root was not used for this run
############################################################################
#------------------------------------------------------------------------------
# This is a sample SPEC CPU2017 config file. It is applicable for:
#
#  Compiler name/version:       Intel(R) C/C++ and Fortran 18.0.0.128 Compilers for Linux
#  Operating system version:    Redhat Enterprise Linux 7.4, GLIBC 2.17
#  Hardware:                    Intel(R) processors supporting CORE-AVX2 tuning
#
# If you wish to build your own:
#        (1) Copy this to a new name
#             cd %SPEC%/config
#             copy this.cfg that.cfg
#        (2) Change items that are marked 'EDIT' (search for it)
#
# If you have different software or hardware, this config file may not work.
# You may find a better config file for your system next to posted results:
#     http://www.spec.org/cpu2017/results
#
# Compiler issues: Contact your compiler vendor, not SPEC.
# For SPEC help:   http://www.spec.org/auto/cpu2017/Docs/techsupport.html
#------------------------------------------------------------------------------


#--------- Preprocessor -------------------------------------------------------
#

# Optionally edit if you wish:
%define build_ncpus 8       # controls number of simultaneous compiles

# Used to date the label
%define version 20170901

# Used for the optimization tuning part of the label (not required)
%if defined(%{noopt})
%define opt_label -noopt
%elif defined(%{medopt})
%define opt_label -medopt
%else
%define opt_label
%endif

# Used for labeling static linked builds (not required)
%if defined(%{static})
%define static_label -static
%else
%define static_label
%endif



#--------- Label --------------------------------------------------------------
# Arbitrary string, tags your binaries & directories.
#                  Two Suggestions:              # (1) Change this label as you try new ideas.
label                = ic18.0-lin-core-avx2-rate%{opt_label}%{static_label}-%{version}          # (2) Make the label meaningful to YOU.



#--------- Global Settings ----------------------------------------------------
# For info, see:
#            https://www.spec.org/auto/cpu2017/Docs/config.html#fieldname   XXX
#   Example: https://www.spec.org/auto/cpu2017/Docs/config.html#tune
     ########################################################
     #         ATTENTION     ATTENTION     ATTENTION
     ########################################################
     #
     #     NOTE If you change fail_build then PLEASE also
     #     change the line 'define version', because
     #     SPEC review tools use 'label' to track binaries.
     #
     ########################################################
     #
     # vvvvvvvvvvvv # do not change unless you read NOTE above
       fail_build=0 # do not change unless you read NOTE above
     # ^^^^^^^^^^^^ # do not change unless you read NOTE above
     #
     ########################################################
     #

action               = validate
command_add_redirect = 1
line_width           = 1020
log_line_width       = 1020
makeflags            = -j%{build_ncpus}
output_format        = txt,cfg,pdf,csv
preenv               = 1
tune                 = base
bench_post_setup     = sync
parallel_test        = 1
mean_anyway          = 1
reportable           = 1
copies               = 1

#Reference the flags Files
flagsurl000=http://www.spec.org/cpu2017/flags/Intel-ic18.0-official-linux64.xml
%ifdef %{default-platform-flags}
flagsurl001=http://www.spec.org/cpu2017/flags/Huawei-Platform-Settings-SKL-V1.7.xml
%endif

# Set some environment variables
preENV_LD_LIBRARY_PATH = $[top]/lib/ia32:$[top]/lib/intel64:$[top]/je5.0.1-32:$[top]/je5.0.1-64

# Affinitization
# For UP systems, we need to know if the processors are ordered across cores first or in order
# If across cores, processors 0, 1, 2 and 3 are on distinct physical cores
# Otherwise, processors 0, 2, 4 and 6 are on distinct physical cores

default:
submit       = numactl --localalloc --physcpubind=$SPECCOPYNUM -- $command

%ifdef %{no-numa}
submit       = taskset -c $SPECCOPYNUM $command
%endif


#--------- Compilers ----------------------------------------------------------
intrate,fprate:
   CC                      = icc -m64 -std=c11
   CXX                     = icpc -m64
   FC                      = ifort -m64

default:
   # How to say "Show me your version, please"
   CC_VERSION_OPTION       = --version
   CXX_VERSION_OPTION      = --version
   FC_VERSION_OPTION       = --version
   JEMALLOC32_DIR = /usr/local/je5.0.1-32/lib
   JEMALLOC64_DIR = /usr/local/je5.0.1-64/lib
%if !defined(%{static})
   JEMALLOC32             = jemalloc
   JEMALLOC64             = jemalloc
%else
   JEMALLOC32             = libjemalloc.a
   JEMALLOC64             = libjemalloc.a
%endif


#--------- Portability --------------------------------------------------------

intrate,fprate:
PORTABILITY= -DSPEC_LP64

500.perlbench_r:
CPORTABILITY = -DSPEC_LINUX_X64

521.wrf_r:
CPORTABILITY = -DSPEC_CASE_FLAG
FPORTABILITY= -convert big_endian

523.xalancbmk_r:
CXXPORTABILITY=-DSPEC_LINUX

526.blender_r:
CPORTABILITY= -DSPEC_LINUX -funsigned-char

527.cam4_r:
CPORTABILITY= -DSPEC_CASE_FLAG



#--------- How Many CPUs? -----------------------------------------------------
# Both SPECrate and SPECspeed can test multiple chips / cores / hw threads
#    - For SPECrate,  you set the number of copies.
# See: https://www.spec.org/cpu2017/Docs/system-requirements.html#MultipleCPUs
#
#    q. How many should I set?
#    a. Unknown, you will have to try it and see!
#
# To get you started, some suggestions:
#
#     copies - This config file defaults to testing only 1 copy.   You might
#              try changing it to match the number of cores on your system,
#              or perhaps the number of virtual CPUs as reported by:
#                     grep -c processor /proc/cpuinfo
#              Be sure you have enough memory.  See:
#              https://www.spec.org/cpu2017/Docs/system-requirements.html#memory
#
default:
   copies           = 1   # EDIT to change number of copies (see above)

#-------- Tuning Flags -------------------------------------------------
intspeed,fpspeed:
   #reconsider using a speed config file instead of a rate config file
   fail=1

intrate,fprate:
   SSE                     = -xCORE-AVX2

   EXTRA_FOPTIMIZE         = -nostandard-realloc-lhs -align array32byte

intrate=default:
   EXTRA_LIBS              = -L$(JEMALLOC64_DIR) -l$(JEMALLOC64)
   EXTRA_LDFLAGS           = -Wl,-z,muldefs

intrate=base:
%if defined(%{noopt})
   OPT_ROOT                = -O0
%elif defined(%{medopt})
   OPT_ROOT                = -O2
%else
   OPT_ROOT                = -ipo -O3 -no-prec-div
%endif
   FAST_NO_STATIC          = $(SSE) $(OPT_ROOT)
   FORT_FAST_NO_STATIC     = $(SSE) $(OPT_ROOT)
   FAST                    = $(SSE) $(OPT_ROOT) -static
   FORT_FAST               = $(SSE) $(OPT_ROOT) -static

%if !defined(%{static})
   COPTIMIZE               = $(FAST_NO_STATIC)  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST_NO_STATIC)  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST_NO_STATIC)  -qopt-mem-layout-trans=3
%if defined(%{noopt})
   COPTIMIZE               = $(OPT_ROOT)
   CXXOPTIMIZE             = $(OPT_ROOT)
   FOPTIMIZE               = $(OPT_ROOT)
%endif
%else
   COPTIMIZE               = $(FAST)  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST)  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST)  -qopt-mem-layout-trans=3
%if defined(%{noopt})
   COPTIMIZE               = $(OPT_ROOT) -static
   CXXOPTIMIZE             = $(OPT_ROOT) -static
   FOPTIMIZE               = $(OPT_ROOT) -static
%endif
%endif

fprate=base:
%if defined(%{noopt})
   OPT_ROOT                = -O0
%elif defined(%{medopt})
   OPT_ROOT                = -O2
%else
   OPT_ROOT                = -ipo -O3 -no-prec-div
%endif
   FAST_NO_STATIC          = $(SSE) $(OPT_ROOT)
   FORT_FAST_NO_STATIC     = $(SSE) $(OPT_ROOT)
   FAST                    = $(SSE) $(OPT_ROOT) -static
   FORT_FAST               = $(SSE) $(OPT_ROOT) -static

%if !defined(%{static})
   COPTIMIZE               = $(FAST_NO_STATIC) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST_NO_STATIC) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST_NO_STATIC) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
%if defined(%{noopt})
   COPTIMIZE               = $(OPT_ROOT)
   CXXOPTIMIZE             = $(OPT_ROOT)
   FOPTIMIZE               = $(OPT_ROOT)
%endif
%else
   COPTIMIZE               = $(FAST) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
%if defined(%{noopt})
   COPTIMIZE               = $(OPT_ROOT) -static
   CXXOPTIMIZE             = $(OPT_ROOT) -static
   FOPTIMIZE               = $(OPT_ROOT) -static
%endif
%endif

intrate=peak:
%if defined(%{noopt}) || defined(%{medopt})
   #not building or executing peak against less opt
   fail=1
%endif
   PASS1_CFLAGS               = -prof-gen
   PASS2_CFLAGS               = -prof-use
   PASS1_FFLAGS               = -prof-gen
   PASS2_FFLAGS               = -prof-use
   PASS1_CXXFLAGS             = -prof-gen
   PASS2_CXXFLAGS             = -prof-use
   PASS1_LDFLAGS              = -prof-gen
   PASS2_LDFLAGS              = -prof-use
   OPT_ROOT                   = -ipo -O3 -no-prec-div
   FAST_NO_STATIC_PASS1       = $(OPT_ROOT)
   FORT_FAST_NO_STATIC_PASS1  = $(OPT_ROOT)
   FAST_PASS1                 = $(OPT_ROOT) -static
   FORT_FAST_PASS1            = $(OPT_ROOT) -static
   FAST_NO_STATIC_PASS2       = $(SSE) $(OPT_ROOT)
   FORT_FAST_NO_STATIC_PASS2  = $(SSE) $(OPT_ROOT)
   FAST_PASS2                 = $(SSE) $(OPT_ROOT) -static
   FORT_FAST_PASS2            = $(SSE) $(OPT_ROOT) -static

%if !defined(%{static})
   PASS1_COPTIMIZE            = $(FAST_NO_STATIC_PASS1)   -qopt-mem-layout-trans=3
   PASS1_CXXOPTIMIZE          = $(FAST_NO_STATIC_PASS1)   -qopt-mem-layout-trans=3
   PASS1_FOPTIMIZE            = $(FORT_FAST_NO_STATIC_PASS1)   -qopt-mem-layout-trans=3
   PASS2_COPTIMIZE            = $(FAST_NO_STATIC_PASS2)   -qopt-mem-layout-trans=3
   PASS2_CXXOPTIMIZE          = $(FAST_NO_STATIC_PASS2)   -qopt-mem-layout-trans=3
   PASS2_FOPTIMIZE            = $(FORT_FAST_NO_STATIC_PASS2)   -qopt-mem-layout-trans=3
%else
   PASS1_COPTIMIZE            = $(FAST_PASS1)   -qopt-mem-layout-trans=3
   PASS1_CXXOPTIMIZE          = $(FAST_PASS1)   -qopt-mem-layout-trans=3
   PASS1_FOPTIMIZE            = $(FORT_FAST_PASS1)   -qopt-mem-layout-trans=3
   PASS2_COPTIMIZE            = $(FAST_PASS2)   -qopt-mem-layout-trans=3
   PASS2_CXXOPTIMIZE          = $(FAST_PASS2)   -qopt-mem-layout-trans=3
   PASS2_FOPTIMIZE            = $(FORT_FAST_PASS2)   -qopt-mem-layout-trans=3
%endif

fprate=peak:
%if defined(%{noopt}) || defined(%{medopt})
   #not building or executing peak against less opt
   fail=1
%endif
   PASS1_CFLAGS               = -prof-gen
   PASS2_CFLAGS               = -prof-use
   PASS1_FFLAGS               = -prof-gen
   PASS2_FFLAGS               = -prof-use
   PASS1_CXXFLAGS             = -prof-gen
   PASS2_CXXFLAGS             = -prof-use
   PASS1_LDFLAGS              = -prof-gen
   PASS2_LDFLAGS              = -prof-use
   OPT_ROOT                   = -ipo -O3 -no-prec-div
   FAST_NO_STATIC_PASS1       = $(OPT_ROOT)
   FORT_FAST_NO_STATIC_PASS1  = $(OPT_ROOT)
   FAST_PASS1                 = $(OPT_ROOT) -static
   FORT_FAST_PASS1            = $(OPT_ROOT) -static
   FAST_NO_STATIC_PASS2       = $(SSE) $(OPT_ROOT)
   FORT_FAST_NO_STATIC_PASS2  = $(SSE) $(OPT_ROOT)
   FAST_PASS2                 = $(SSE) $(OPT_ROOT) -static
   FORT_FAST_PASS2            = $(SSE) $(OPT_ROOT) -static

%if !defined(%{static})
   PASS1_COPTIMIZE            = $(FAST_NO_STATIC_PASS1)  -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS1_CXXOPTIMIZE          = $(FAST_NO_STATIC_PASS1)  -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS1_FOPTIMIZE            = $(FORT_FAST_NO_STATIC_PASS1)  -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS2_COPTIMIZE            = $(FAST_NO_STATIC_PASS2) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS2_CXXOPTIMIZE          = $(FAST_NO_STATIC_PASS2) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS2_FOPTIMIZE            = $(FORT_FAST_NO_STATIC_PASS2) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
%else
   PASS1_COPTIMIZE            = $(FAST_PASS1)  -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS1_CXXOPTIMIZE          = $(FAST_PASS1)  -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS1_FOPTIMIZE            = $(FORT_FAST_PASS1)  -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS2_COPTIMIZE            = $(FAST_PASS2) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS2_CXXOPTIMIZE          = $(FAST_PASS2) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   PASS2_FOPTIMIZE            = $(FORT_FAST_PASS2) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
%endif

#some benchmarks do not want to share a core
%ifdef %{smt-on}
%define numpeakcopies %{cores}

510.parest_r,521.wrf_r,554.roms_r=peak:
   copies = %{numpeakcopies}
%endif

500.perlbench_r=peak=default:
#[56]00.perlbench[rs] has non standard signed overflow
   EXTRA_OPTIMIZE             = -fno-strict-overflow

525.x264_r=peak:
   EXTRA_OPTIMIZE          = -fno-alias

502.gcc_r,523.xalancbmk_r=peak:
   CC                      = icc -m32 -std=c11 -L/opt/intel/compilers_and_libraries_2018/linux/lib/ia32
   CXX                     = icpc -m32 -L/opt/intel/compilers_and_libraries_2018/linux/lib/ia32
   FC                      = ifort -m32 -L/opt/intel/compilers_and_libraries_2018/linux/lib/ia32
   EXTRA_LIBS              = -L$(JEMALLOC32_DIR) -l$(JEMALLOC32)
   EXTRA_LDFLAGS           = -Wl,-z,muldefs
#Change portability for 32b, large file support for safety
   PORTABILITY             = -D_FILE_OFFSET_BITS=64

#int rate subset for removing FDO

505.mcf_r,525.x264_r,548.exchange2_r,557.xz_r=peak=default:
   feedback                = 0
   OPT_ROOT                = -ipo -O3 -no-prec-div
   FAST_NO_STATIC          = $(SSE) $(OPT_ROOT)
   FORT_FAST_NO_STATIC     = $(SSE) $(OPT_ROOT)
   FAST                    = $(SSE) $(OPT_ROOT) -static
   FORT_FAST               = $(SSE) $(OPT_ROOT) -static
%if !defined(%{static})
   COPTIMIZE               = $(FAST_NO_STATIC)  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST_NO_STATIC)  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST_NO_STATIC)  -qopt-mem-layout-trans=3
%else
   COPTIMIZE               = $(FAST)  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST)  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST)  -qopt-mem-layout-trans=3
%endif

#fp rate subset for removing FDO
503.bwaves_r,538.imagick_r,549.fotonik3d_r=peak=default:
   feedback                = 0
   OPT_ROOT                = -ipo -O3 -no-prec-div

   FAST_NO_STATIC          = $(SSE) $(OPT_ROOT)
   FORT_FAST_NO_STATIC     = $(SSE) $(OPT_ROOT)
   FAST                    = $(SSE) $(OPT_ROOT) -static
   FORT_FAST               = $(SSE) $(OPT_ROOT) -static

%if !defined(%{static})
   COPTIMIZE               = $(FAST_NO_STATIC) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST_NO_STATIC) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST_NO_STATIC) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
%else
   COPTIMIZE               = $(FAST) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   CXXOPTIMIZE             = $(FAST) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
   FOPTIMIZE               = $(FORT_FAST) -qopt-prefetch -ffinite-math-only  -qopt-mem-layout-trans=3
%endif



#-------------------------------------------------------------------------------
# Tester and System Descriptions - EDIT the sections below
#-------------------------------------------------------------------------------
#   For info about any field, see
#             https://www.spec.org/auto/cpu2017/Docs/config.html#fieldname
#   Example:  https://www.spec.org/auto/cpu2017/Docs/config.html#hw_memory
#-------------------------------------------------------------------------------

#--------- If you install new compilers, EDIT this section --------------------

intrate,intspeed,fpspeed,fprate:
   sw_compiler000   = C/C++: Version 18.0.0.128 of Intel C/C++
   sw_compiler001   = Compiler for Linux;
   sw_compiler002   = Fortran: Version 18.0.0.128 of Intel Fortran
   sw_compiler003   = Compiler for Linux
   sw_base_ptrsize  = 64-bit

fprate,fpspeed:
   sw_peak_ptrsize  = 64-bit
sw_other = None

intrate,intspeed:
   sw_peak_ptrsize  = 32/64-bit
   sw_other001      = jemalloc: jemalloc memory allocator library V5.0.1;
   sw_other002      = jemalloc: configured and built at default for 32bit (i686) and 64bit (x86_64) targets;
   sw_other003      = jemalloc: built with the RedHat Enterprise 7.4, and the system compiler gcc 4.8.5;
   sw_other004      = jemalloc: sources avilable from jemalloc.net or https://github.com/jemalloc/jemalloc/releases;

#--------- EDIT Your info ---------------------------------------------------------
# To understand the difference between hw_vendor/sponsor/tester, see:
#     www.spec.org/auto/cpu2017/Docs/config.html#test_sponsor
intrate,intspeed,fprate,fpspeed: # Important: keep this line
   hw_vendor          = Huawei
   tester             = Huawei
   test_sponsor       = Huawei
   license_num        = 3175
   prepared_by        = Huawei

#--------- EDIT system availability dates and system information ----------------------------------------------
intrate,intspeed,fprate,fpspeed: # Important: keep this line
                        # Example                             # Brief info about field
   hw_avail           = Jul-2017# Nov-2099                            # Date of LAST hardware component to ship
   sw_avail           = Sep-2017# Nov-2099                            # Date of LAST software component to ship
   hw_cpu_nominal_mhz = 2400
   hw_cpu_max_mhz     = 3700
   hw_ncores          = 40
   hw_nthreadspercore = 2# 9                                   # number threads enabled per core
   hw_ncpuorder       = 1,2 chips# 1-9 chips                           # Ordering options

   hw_model           = Huawei 1288H V5 (Intel Xeon Gold 6148)
   hw_other           = None# TurboNUMA Router 10 Gb              # Other perf-relevant hw, or "None"
#   sw_other           = # TurboHeap Library V8.1              # Other perf-relevant sw, or "None"

   hw_pcache          = 32 KB I + 32 KB D on chip per core  # Primary cache size, type, location
   hw_scache          = 1 MB I+D on chip per core       # Second cache or "None"
   hw_tcache          = 27.5 MB I+D on chip per chip
   hw_ocache          = None# 9 GB I+D off chip per system board  # Other cache or "None"

#   hw_memory001       = # 4 TB (256 x 16 GB 2Rx4 PC4-2133P-R, # N GB (M x N GB nRxn
#   hw_memory002       = # running at 1600 MHz)                # PCn-nnnnnR-n[, ECC and other info])
   hw_memory000       = 384 GB (24 x 16 GB 2Rx8 PC4-2666V-R)


#--------- Sysinfo fields - You may need to adjust this section ---------------
# Note: Some commented-out fields above are automatically set to preliminary
# values by sysinfo
#       www.spec.org/auto/cpu2017/Docs/config.html#sysinfo
# Uncomment lines for which you already have a better answer than sysinfo
#
intrate,intspeed,fprate,fpspeed: # Important: keep this line
                        # Example               # Brief info about field
 # hw_cpu_name        = # Intel Xeon E9-9999 v9               # chip name
 # hw_disk            = # 9 x 9 TB SATA III 9999 RPM          # Size, type, other perf-relevant info
 # hw_nchips          = # 99                                  # number chips enabled
 # sw_file            = # ext99                               # File system
 # sw_state           = # Run level 99                        # Software state.

 # sw_os001           = # Linux Sailboat                      # Operating system
 # sw_os002           = # Distribution 7.2 SP1                # and version

   hw_disk            = 1 x 1200 GB SAS, 10000 RPM
   sw_state           = Run level 3 (multi-user)
   fw_bios            = Version 0.37 Released Nov-2017


#--------- EDIT Intel Recommended Fields - You may wish to adjust this section -----

default:
   notes_015        = Binaries compiled on a system with 1x Intel Core i7-4790 CPU + 32GB RAM
   notes_020        = memory using Redhat Enterprise Linux 7.4
   notes_os_000     = Stack size set to unlimited using "ulimit -s unlimited"
#Ease of tagging results from the runcpu command line with commands run outside of runcpu harneess
#Adjust as necessary for your SUT
%if defined(%{THP_enabled})
   notes_200        = Transparent Huge Pages enabled with:
   notes_201        = echo always > /sys/kernel/mm/transparent_hugepage/enabled
%elif defined(%{THP_disabled})
   notes_200        = Transparent Huge Pages disabled with:
   notes_201        = echo never  > /sys/kernel/mm/transparent_hugepage/enabled
%else
   notes_025        = Transparent Huge Pages enabled by default
%endif

%ifdef %{drop_caches}
   notes_030        = Prior to runcpu invocation
   notes_035        = Filesystem page cache synced and cleared with:
   notes_040        = sync; echo 3>       /proc/sys/vm/drop_caches
%endif

%ifdef %{invoke_with_interleave}
   notes_045        = runcpu command invoked through numactl i.e.:
   notes_050        = numactl --interleave=all runcpu <etc>
%endif

intrate,fprate:
%if defined(%{no-numa})
   notes_submit_000 = The taskset mechanism was used to bind copies to processors. The config file option 'submit'
   notes_submit_001 = was used to generate taskset commands to bind each copy to a specific processor.
   notes_submit_002 = For details, please see the config file.
%else
   notes_submit_000 = The numactl mechanism was used to bind copies to processors. The config file option 'submit'
   notes_submit_005 = was used to generate numactl commands to bind each copy to a specific processor.
   notes_submit_010 = For details, please see the config file.
%endif

intrate,fprate:
%if defined(%{no-numa})
   notes_plat_000   = BIOS configuration:
   notes_plat_005   = Power Policy Set to Performance
   notes_plat_010   = SNC Set to Enabled
   notes_plat_015   = IMC Interleaving Set to 1 way Interleave
   notes_plat_020   = XPT Prefetch Set to Enabled

%else
   notes_plat_000   = BIOS configuration:
   notes_plat_005   = Power Policy Set to Performance
   notes_plat_010   = SNC Set to Enabled
   notes_plat_015   = IMC Interleaving Set to 1 way Interleave
   notes_plat_020   = XPT Prefetch Set to Enabled
%endif


# The following settings were obtained by running the sysinfo_program
# 'specperl $[top]/bin/sysinfo' (sysinfo:SHA:ecd2bef08f316af97f5a7768b641e2a3307c1b4b68efb5a57fa76367d790d233)
default:
notes_plat_sysinfo_000 = Sysinfo program /spec2017/bin/sysinfo
notes_plat_sysinfo_005 = Rev: r5797 of 2017-06-14 96c45e4568ad54c135fd618bcc091c0f
notes_plat_sysinfo_010 = running on linux-jujq Thu Dec  7 08:53:24 2017
notes_plat_sysinfo_015 =
notes_plat_sysinfo_020 = SUT (System Under Test) info as seen by some common utilities.
notes_plat_sysinfo_025 = For more information on this section, see
notes_plat_sysinfo_030 =    https://www.spec.org/cpu2017/Docs/config.html#sysinfo
notes_plat_sysinfo_035 =
notes_plat_sysinfo_040 = From /proc/cpuinfo
notes_plat_sysinfo_045 =    model name : Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz
notes_plat_sysinfo_050 =       2  "physical id"s (chips)
notes_plat_sysinfo_055 =       80 "processors"
notes_plat_sysinfo_060 =    cores, siblings (Caution: counting these is hw and system dependent. The following
notes_plat_sysinfo_065 =    excerpts from /proc/cpuinfo might not be reliable.  Use with caution.)
notes_plat_sysinfo_070 =       cpu cores : 20
notes_plat_sysinfo_075 =       siblings  : 40
notes_plat_sysinfo_080 =       physical 0: cores 0 1 2 3 4 8 9 10 11 12 16 17 18 19 20 24 25 26 27 28
notes_plat_sysinfo_085 =       physical 1: cores 0 1 2 3 4 8 9 10 11 12 16 17 18 19 20 24 25 26 27 28
notes_plat_sysinfo_090 =
notes_plat_sysinfo_095 = From lscpu:
notes_plat_sysinfo_100 =      Architecture:          x86_64
notes_plat_sysinfo_105 =      CPU op-mode(s):        32-bit, 64-bit
notes_plat_sysinfo_110 =      Byte Order:            Little Endian
notes_plat_sysinfo_115 =      CPU(s):                80
notes_plat_sysinfo_120 =      On-line CPU(s) list:   0-79
notes_plat_sysinfo_125 =      Thread(s) per core:    2
notes_plat_sysinfo_130 =      Core(s) per socket:    20
notes_plat_sysinfo_135 =      Socket(s):             2
notes_plat_sysinfo_140 =      NUMA node(s):          4
notes_plat_sysinfo_145 =      Vendor ID:             GenuineIntel
notes_plat_sysinfo_150 =      CPU family:            6
notes_plat_sysinfo_155 =      Model:                 85
notes_plat_sysinfo_160 =      Model name:            Intel(R) Xeon(R) Gold 6148 CPU @ 2.40GHz
notes_plat_sysinfo_165 =      Stepping:              4
notes_plat_sysinfo_170 =      CPU MHz:               2400.016
notes_plat_sysinfo_175 =      BogoMIPS:              4800.03
notes_plat_sysinfo_180 =      Virtualization:        VT-x
notes_plat_sysinfo_185 =      L1d cache:             32K
notes_plat_sysinfo_190 =      L1i cache:             32K
notes_plat_sysinfo_195 =      L2 cache:              1024K
notes_plat_sysinfo_200 =      L3 cache:              28160K
notes_plat_sysinfo_205 =      NUMA node0 CPU(s):     0-2,5,6,10-12,15,16,40-42,45,46,50-52,55,56
notes_plat_sysinfo_210 =      NUMA node1 CPU(s):     3,4,7-9,13,14,17-19,43,44,47-49,53,54,57-59
notes_plat_sysinfo_215 =      NUMA node2 CPU(s):     20-22,25,26,30-32,35,36,60-62,65,66,70-72,75,76
notes_plat_sysinfo_220 =      NUMA node3 CPU(s):     23,24,27-29,33,34,37-39,63,64,67-69,73,74,77-79
notes_plat_sysinfo_225 =      Flags:                 fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov
notes_plat_sysinfo_230 =      pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp
notes_plat_sysinfo_235 =      lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc
notes_plat_sysinfo_240 =      aperfmperf eagerfpu pni pclmulqdq dtes64 ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16
notes_plat_sysinfo_245 =      xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave
notes_plat_sysinfo_250 =      avx f16c rdrand lahf_lm abm 3dnowprefetch ida arat epb pln pts dtherm intel_pt
notes_plat_sysinfo_255 =      tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2
notes_plat_sysinfo_260 =      erms invpcid rtm cqm mpx avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd
notes_plat_sysinfo_265 =      avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc
notes_plat_sysinfo_270 =
notes_plat_sysinfo_275 = /proc/cpuinfo cache data
notes_plat_sysinfo_280 =    cache size : 28160 KB
notes_plat_sysinfo_285 =
notes_plat_sysinfo_290 = From numactl --hardware  WARNING: a numactl 'node' might or might not correspond to a
notes_plat_sysinfo_295 = physical chip.
notes_plat_sysinfo_300 =   available: 4 nodes (0-3)
notes_plat_sysinfo_305 =   node 0 cpus: 0 1 2 5 6 10 11 12 15 16 40 41 42 45 46 50 51 52 55 56
notes_plat_sysinfo_310 =   node 0 size: 94736 MB
notes_plat_sysinfo_315 =   node 0 free: 93866 MB
notes_plat_sysinfo_320 =   node 1 cpus: 3 4 7 8 9 13 14 17 18 19 43 44 47 48 49 53 54 57 58 59
notes_plat_sysinfo_325 =   node 1 size: 96760 MB
notes_plat_sysinfo_330 =   node 1 free: 95960 MB
notes_plat_sysinfo_335 =   node 2 cpus: 20 21 22 25 26 30 31 32 35 36 60 61 62 65 66 70 71 72 75 76
notes_plat_sysinfo_340 =   node 2 size: 96760 MB
notes_plat_sysinfo_345 =   node 2 free: 95879 MB
notes_plat_sysinfo_350 =   node 3 cpus: 23 24 27 28 29 33 34 37 38 39 63 64 67 68 69 73 74 77 78 79
notes_plat_sysinfo_355 =   node 3 size: 96622 MB
notes_plat_sysinfo_360 =   node 3 free: 95820 MB
notes_plat_sysinfo_365 =   node distances:
notes_plat_sysinfo_370 =   node   0   1   2   3
notes_plat_sysinfo_375 =     0:  10  11  21  21
notes_plat_sysinfo_380 =     1:  11  10  21  21
notes_plat_sysinfo_385 =     2:  21  21  10  11
notes_plat_sysinfo_390 =     3:  21  21  11  10
notes_plat_sysinfo_395 =
notes_plat_sysinfo_400 = From /proc/meminfo
notes_plat_sysinfo_405 =    MemTotal:       394116700 kB
notes_plat_sysinfo_410 =    HugePages_Total:       0
notes_plat_sysinfo_415 =    Hugepagesize:       2048 kB
notes_plat_sysinfo_420 =
notes_plat_sysinfo_425 = From /etc/*release* /etc/*version*
notes_plat_sysinfo_430 =    SuSE-release:
notes_plat_sysinfo_435 =       SUSE Linux Enterprise Server 12 (x86_64)
notes_plat_sysinfo_440 =       VERSION = 12
notes_plat_sysinfo_445 =       PATCHLEVEL = 2
notes_plat_sysinfo_450 =       # This file is deprecated and will be removed in a future service pack or release.
notes_plat_sysinfo_455 =       # Please check /etc/os-release for details about this release.
notes_plat_sysinfo_460 =    os-release:
notes_plat_sysinfo_465 =       NAME="SLES"
notes_plat_sysinfo_470 =       VERSION="12-SP2"
notes_plat_sysinfo_475 =       VERSION_ID="12.2"
notes_plat_sysinfo_480 =       PRETTY_NAME="SUSE Linux Enterprise Server 12 SP2"
notes_plat_sysinfo_485 =       ID="sles"
notes_plat_sysinfo_490 =       ANSI_COLOR="0;32"
notes_plat_sysinfo_495 =       CPE_NAME="cpe:/o:suse:sles:12:sp2"
notes_plat_sysinfo_500 =
notes_plat_sysinfo_505 = uname -a:
notes_plat_sysinfo_510 =    Linux linux-jujq 4.4.21-69-default #1 SMP Tue Oct 25 10:58:20 UTC 2016 (9464f67)
notes_plat_sysinfo_515 =    x86_64 x86_64 x86_64 GNU/Linux
notes_plat_sysinfo_520 =
notes_plat_sysinfo_525 = run-level 3 Dec 6 04:31
notes_plat_sysinfo_530 =
notes_plat_sysinfo_535 = SPEC is set to: /spec2017
notes_plat_sysinfo_540 =    Filesystem     Type  Size  Used Avail Use% Mounted on
notes_plat_sysinfo_545 =    /dev/sda2      xfs   500G   26G  475G   6% /
notes_plat_sysinfo_550 =
notes_plat_sysinfo_555 = Additional information from dmidecode follows.  WARNING: Use caution when you interpret
notes_plat_sysinfo_560 = this section. The 'dmidecode' program reads system data which is "intended to allow
notes_plat_sysinfo_565 = hardware to be accurately determined", but the intent may not be met, as there are
notes_plat_sysinfo_570 = frequent changes to hardware, firmware, and the "DMTF SMBIOS" standard.
notes_plat_sysinfo_575 =   BIOS INSYDE Corp. 0.37 11/13/2017
notes_plat_sysinfo_580 =   Memory:
notes_plat_sysinfo_585 =    24x Samsung M393A2K43BB1-CTD 16 GB 2 rank 2666
notes_plat_sysinfo_590 =
notes_plat_sysinfo_595 = (End of data from sysinfo program)
hw_cpu_name    = Intel Xeon Gold 6148
hw_disk        = 500 GB  add more disk info here
hw_nchips      = 2
prepared_by    = root  (is never output, only tags rawfile)
sw_file        = xfs
sw_os000       = SUSE Linux Enterprise Server 12 SP2 (x86_64)
sw_os001       = 4.4.21-69-default
sw_state       = Run level 3 (add definition here)
# End of settings added by sysinfo_program


# The following section was added automatically, and contains settings that
# did not appear in the original configuration file, but were added to the
# raw file after the run.

507.cactuBSSN_r:
# The following setting was inserted automatically as a result of
# post-run basepeak application.
basepeak = 1


503.bwaves_r:
# The following setting was inserted automatically as a result of
# post-run basepeak application.
basepeak = 1

default:
notes_000 =Environment variables set by runcpu before the start of the run:
notes_005 =LD_LIBRARY_PATH = "/spec2017/lib/ia32:/spec2017/lib/intel64:/spec2017/je5.0.1-32:/spec2017/je5.0.1-64"
notes_010 =