Commit b4da4c39 authored by Andreas Zwinkau's avatar Andreas Zwinkau
Browse files

Remove warning in CPU2006

parent 6b58746b
......@@ -240,17 +240,17 @@ def generate_spec_config(options):
contents.append("sw_base_ptrsize = %d-bit" % BITSIZE)
contents.append("sw_peak_ptrsize = %d-bit" % BITSIZE)
contents.append("")
chips = (1+int(cpuinfo["processor"]))
cores_per_chip = int(cpuinfo["cpu cores"])
cores = cores_per_chip * chips
if SPEC_SUITE == "SPEC CPU2006":
contents.append("hw_cpu_name = %s" % cpuinfo["model name"])
if SPEC_SUITE == "SPEC CPU2000":
contents.append("hw_ncores = %d" % cores)
elif SPEC_SUITE == "SPEC CPU2000":
contents.append("hw_model = %s" % cpuinfo["model name"])
contents.append("hw_ncpu = %d" % cores)
contents.append("hw_cpu_mhz = %s" % cpuinfo["cpu MHz"])
chips = (1+int(cpuinfo["processor"]))
cores_per_chip = int(cpuinfo["cpu cores"])
cores = cores_per_chip * chips
contents.append("hw_nchips = %d" % chips)
contents.append("hw_ncores = %d" % cores) # CPU2006
contents.append("hw_ncpu = %d" % cores) # CPU2000
contents.append("hw_ncoresperchip = %d" % cores_per_chip)
contents.append("hw_vendor = %s" % cpuinfo["vendor_id"])
contents.append("hw_memory = %s" % meminfo["MemTotal"])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment