Skip to content

Commit

Permalink
fixup! remove unused methods of LargeVector
Browse files Browse the repository at this point in the history
  • Loading branch information
meyerzinn committed Apr 21, 2024
1 parent c23c43c commit 693d176
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libgalois/test/large-vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,12 @@ int main() {
galois::LargeVector<uint64_t> the_vector(1 << 21);

// should use 4 hugepages
std::vector<uint64_t*> refs;
refs.resize(1 << 21);
for (size_t i = 0; i < refs.size(); ++i) {
refs[i] = &the_vector.emplace_back(i);
std::vector<uint64_t*> refs(the_vector.size());
for (size_t i = 0; i < the_vector.size(); ++i) {
refs[i] = &the_vector[i];
}

for (size_t i = 0; i < (1 << 21); ++i) {
for (size_t i = 0; i < the_vector.size(); ++i) {
GALOIS_ASSERT(*refs[i] == i);
}
}
Expand Down

0 comments on commit 693d176

Please sign in to comment.