Skip to content

Commit

Permalink
Fixed bandwidth variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
artempriakhin committed Feb 3, 2022
1 parent 98ed11f commit eeb005e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Binary file modified test/realm/concurrent_memspeed
Binary file not shown.
6 changes: 3 additions & 3 deletions test/realm/concurrent_memspeed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void do_copies(Processor p, const std::vector<Memory> &memories) {

int experiment_count = 0;
long long mean_copy_duration = 0;
double mean_bandwith = 0.0;
double mean_throughput = 0.0;
log_app.info() << "Memspeed Results";
for (size_t i = 0; i < memspeed_experiments.size(); ++i) {
long long copy_duration = (memspeed_experiments[i].copy_end_time -
Expand All @@ -260,12 +260,12 @@ void do_copies(Processor p, const std::vector<Memory> &memories) {
<< " copied_bytes=" << memspeed_experiments[i].copied_bytes
<< " throughput=" << throughput;
mean_copy_duration += copy_duration;
mean_bandwith += bandwidth;
mean_throughput += throughput;
experiment_count++;
}
log_app.print() << "Mean copy_duration="
<< mean_copy_duration / experiment_count << " mean bandwidth="
<< static_cast<double>(mean_bandwith) / experiment_count;
<< static_cast<double>(mean_throughput) / experiment_count;

for (auto &instance : dst_instances) {
instance.destroy();
Expand Down

0 comments on commit eeb005e

Please sign in to comment.