HW2: Added some test and fix bubblesort <number of iteration> bug

This commit is contained in:
2024-12-30 22:03:30 +02:00
parent c5ffec9cca
commit 9dd3eb737f
8 changed files with 345 additions and 272 deletions
+2 -2
View File
@@ -136,9 +136,9 @@ int main(int argc, char* argv[]) try {
logger << "Starting distributed sorting ... ";
timer.start();
#if CODE_VERSION == BUBBLETONIC
distBubbletonic(Data, mpi.size());
distBubbletonic(Data, mpi.size(), mpi.rank());
#else
distBitonic (Data, mpi.size());
distBitonic (Data, mpi.size(), mpi.rank());
#endif
timer.stop();
if (mpi.rank() == 0)