コード例 #1
0
print "{:10}, {:7}, {:13}, {:9}, {:4}, {:10}, {:10}, {:10}, {:3}, {:10}".\
format("key", "nproc", "#M", "#M/proc", "#F", "solve: 0D", "1D", "total", "n", "memData")
for key in datasets:
  
  nF = int(datasets[key]["value"][column_key_map["nInstancesComputedGlobally"]])
  nM = int(datasets[key]["value"][column_key_map["nElements1D"]]*datasets[key]["value"][column_key_map["nInstancesComputedGlobally"]])
  nproc = int(datasets[key]["value"][column_key_map["nRanks"]])
  number = datasets[key]["number"]
  
  print("{:10}, {:7}, {:13}, {:9}, {:4}, {:10}, {:10}, {:10}, {:3}, {:10}".\
  format(key, 
  nproc,
  nM,
  nM/nproc,
  nF,
  fo.str_format_seconds(datasets[key]["value"][column_key_map["duration_0D"]]),
  fo.str_format_seconds(datasets[key]["value"][column_key_map["duration_1D"]]),
  fo.str_format_seconds(datasets[key]["value"][column_key_map["duration_total"]]),
  number,
  fo.str_format_memory(datasets[key]["value"][column_key_map["memoryData"]])
  ))
print ""
print ""

###############################################################
#######################################################
# plot
# x-axis: n processes
# y-axis: total time
plt.rcParams.update({'font.size': 20})
plt.rcParams['lines.linewidth'] = 3
コード例 #2
0
###############################################################
# output to console
print("")
print("------------- duration -------------------------------------------")
print("{:30}, {:7}, {:10}, {:10}, {:10}, {:10}, {:10}, {:10}, {:3}, {:10}".\
format("key", "nproc", "solve 0D", "solve 1D", "write", "comp.", "usertime", "overhead", "n", "memRSS"))
for key in datasets:

    #nF = int(datasets[key]["value"][column_key_map["nInstancesComputedGlobally"]])
    nproc = int(datasets[key]["value"][column_key_map["nRanks"]])
    number = datasets[key]["number"]

    print("{:30}, {:7}, {:10}, {:10}, {:10}, {:10}, {:10}, {:10}, {:3}, {:10}".\
    format(key,
    nproc,
    fo.str_format_seconds(datasets[key]["value"][column_key_map["duration_0D"]]),
    fo.str_format_seconds(datasets[key]["value"][column_key_map["duration_1D"]]),
    fo.str_format_seconds(datasets[key]["value"][column_key_map["write output"]]),
    fo.str_format_seconds(datasets[key]["value"][column_key_map["duration_total"]]),
    fo.str_format_seconds(datasets[key]["value"][column_key_map["totalUsertime"]]),
    fo.str_format_seconds((float)(datasets[key]["value"][column_key_map["duration_total"]])-(float)(datasets[key]["value"][column_key_map["write output"]])-(float)(datasets[key]["value"][column_key_map["duration_1D"]])-(float)(datasets[key]["value"][column_key_map["duration_0D"]])),
    number,
    fo.str_format_memory(datasets[key]["value"][column_key_map["memoryResidentSet"]])
    ))
print("")
print("")
sys.exit(0)
###############################################################
#######################################################
# plot
# x-axis: n processes