Skip to content

Commit

Permalink
#8: fix unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cwschilly committed Aug 26, 2024
1 parent c73c7fe commit a187dc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vt-tv/utility/parse_render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ void ParseRender::parseAndRender(PhaseType phase_id, std::unique_ptr<Info> info)
info->addInfo(tmpInfo->getObjectInfo(), tmpInfo->getRank(rank));
}
}
int64_t n_ranks = config["input"]["n_ranks"].as<int64_t>(); // signed for omp parallel for
assert(info->getNumRanks() == static_cast<std::size_t>(n_ranks));
std::size_t n_ranks = config["input"]["n_ranks"].as<std::size_t>();
if (info->getNumRanks() != n_ranks) {
throw std::runtime_error("Number of ranks does not match expected value.");
}
fmt::print("Num ranks={}\n", info->getNumRanks());
}

Expand Down

0 comments on commit a187dc8

Please sign in to comment.