Explorar o código

Fix argument parsing in MPI sendrecv bench

Philippe SWARTVAGHER %!s(int64=4) %!d(string=hai) anos
pai
achega
2123663f68
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mpi/examples/benchs/sendrecv_bench.c

+ 1 - 1
mpi/examples/benchs/sendrecv_bench.c

@@ -54,7 +54,7 @@ int main(int argc, char **argv)
 		{
 			man();
 		}
-		if (strcmp(argv[i], "--bidir") == 0)
+		else if (strcmp(argv[i], "--bidir") == 0)
 		{
 			bidir = 1;
 			printf("Communications will be full-duplex.\n");