-/* Copyright (c) 2019-2021. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2019-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
MPI_Init(&argc, &argv);
MPI_Comm_size(MPI_COMM_WORLD, &nproc);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
-
+
if(argc<2){
if (rank == 0)
printf("Usage : gemm size \"native/sampling\"\n");
float *b = (float*)malloc(sizeof(float)*size*size);
float *c = (float*)malloc(sizeof(float)*size*size);
-
MPI_Barrier(MPI_COMM_WORLD);
start = MPI_Wtime();
multiply_sampled(a, b, c, (size/nproc)*nproc, size-1, size);
}
}
-
+
MPI_Barrier(MPI_COMM_WORLD);
end = MPI_Wtime();
sec_per_matrix_mul,
flops_per_matrix_mul);
}
-
return 0;
}