Commit cb3eb3d5 authored by Marc Vef's avatar Marc Vef
Browse files

ifs_test: MPI test is now given the total number of files distributed across all ranks

parent 7635afda
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -11,7 +11,8 @@ using get_time = chrono::steady_clock;

int main(int argc, char* argv[]) {

    auto filen = atoi(argv[1]);
//    auto filen = atoi(argv[1]);
    auto total_files = atoi(argv[1]);

    MPI_Init(NULL, NULL);
    int world_size;
@@ -19,7 +20,8 @@ int main(int argc, char* argv[]) {
    int rank;
    MPI_Comm_rank(MPI_COMM_WORLD, &rank);

    auto total_files = filen * world_size;
//    auto total_files = filen * world_size;
    auto filen = total_files / world_size;

//    int filen = 3;