Skip to content

Commit

Permalink
Fix clang-tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Dec 17, 2023
1 parent a6e64ce commit 6825e0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/viewcopy/viewcopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void benchmarkMemcopy(std::size_t dataSize, std::ostream& plotFile)
{
memcpy(dst.data(), src.data(), dataSize);
const auto seconds = watch.getAndReset();
const auto gbs = dataSize / (seconds * 1024.0 * 1024.0 * 1024.0);
const auto gbs = static_cast<double>(dataSize) / (seconds * 1024.0 * 1024.0 * 1024.0);
stats(gbs);
}
std::cout << name << " " << stats.mean() << "GiB/s\n";
Expand Down

0 comments on commit 6825e0d

Please sign in to comment.