|
@@ -47,7 +47,7 @@ int my_distrib(int x)
|
|
|
return x;
|
|
|
}
|
|
|
|
|
|
-void test_cache(int rank, int size, char *enabled, size_t *comm_amount)
|
|
|
+void test_cache(int rank, char *enabled, size_t *comm_amount)
|
|
|
{
|
|
|
int i;
|
|
|
int ret;
|
|
@@ -124,8 +124,8 @@ int main(int argc, char **argv)
|
|
|
comm_amount_with_cache = malloc(size * sizeof(size_t));
|
|
|
comm_amount_without_cache = malloc(size * sizeof(size_t));
|
|
|
|
|
|
- test_cache(rank, size, "0", comm_amount_with_cache);
|
|
|
- test_cache(rank, size, "1", comm_amount_without_cache);
|
|
|
+ test_cache(rank, "0", comm_amount_with_cache);
|
|
|
+ test_cache(rank, "1", comm_amount_without_cache);
|
|
|
|
|
|
if (rank == 1)
|
|
|
{
|
|
@@ -133,7 +133,9 @@ int main(int argc, char **argv)
|
|
|
FPRINTF_MPI("Communication cache mechanism is %sworking (with cache: %ld) (without cache: %ld)\n", result?"":"NOT ", comm_amount_with_cache[0], comm_amount_without_cache[0]);
|
|
|
}
|
|
|
else
|
|
|
+ {
|
|
|
result = 1;
|
|
|
+ }
|
|
|
|
|
|
free(comm_amount_without_cache);
|
|
|
free(comm_amount_with_cache);
|