Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions benchmark/nixlbench/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,7 @@ void xferBenchUtils::checkConsistency(std::vector<std::vector<xferBenchIOV>> &io
xferBenchConfig::num_initiator_dev);
gusli_devmap_init = true;
}
bool pass_check_consistency = true;
for (const auto &iov_list: iov_lists) {
for(const auto &iov: iov_list) {
void *addr = NULL;
Expand Down Expand Up @@ -793,6 +794,7 @@ void xferBenchUtils::checkConsistency(std::vector<std::vector<xferBenchIOV>> &io
rc = allBytesAre(addr, len, check_val);
if (true != rc) {
std::cerr << "Consistency check failed for iov " << i << ":" << j << std::endl;
pass_check_consistency = false;
}
// Free the addr only if is allocated here
if (is_allocated) {
Expand All @@ -802,6 +804,10 @@ void xferBenchUtils::checkConsistency(std::vector<std::vector<xferBenchIOV>> &io
}
i++;
}
if (!pass_check_consistency) {
std::cerr << "Consistency check failed" << std::endl;
exit(EXIT_FAILURE);
}
}

void
Expand Down