Closed anderbubble closed 9 years ago
osu_alltoall.c was modified from its upstream version:
$ bash horrible-diff.sh osu-micro-benchmarks-3.8-July12/mpi/collective/osu_alltoall.c /home/molu8455/admin/benchmarks/software/mpi/osu_alltoall.c
--- /dev/fd/63 2015-05-29 12:06:29.813903357 -0600
+++ /dev/fd/62 2015-05-29 12:06:29.767903158 -0600
@@ -19,7 +19,8 @@
double timer=0.0;
double avg_time = 0.0, max_time = 0.0, min_time = 0.0;
char *sendbuf, *recvbuf, *s_buf1, *r_buf1;
-int max_msg_size = 1048576, full = 0;
+//int max_msg_size = 1048576, full = 0;
+int max_msg_size = 262144, full = 0;
MPI_Init(&argc, &argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
@@ -71,7 +72,7 @@
MPI_Barrier(MPI_COMM_WORLD);
-for(size = 1; size <= max_msg_size; size *= 2) {
+for(size = max_msg_size; size <= max_msg_size+1; size *= 2) {
if(size > LARGE_MESSAGE_SIZE) {
skip = SKIP_LARGE;
iterations = iterations_large;
@@ -81,6 +82,22 @@
skip = SKIP;
}
+
+double loop_start = MPI_Wtime();
+double loop_current = MPI_Wtime();
+// Change to a while loop for 5 minutes...
+int counter = 0;
+double loop_time = loop_current - loop_start;
+
+while( counter < 10)
+{
+// if(rank == 0) {
+// fprintf(stdout, "%f %i\n", loop_time, counter);
+// }
+
+if (loop_time > 600)
+break;
+
timer=0.0;
for(i = 0; i < iterations + skip; i++) {
t_start = MPI_Wtime();
@@ -108,6 +125,10 @@
print_data(rank, full, size, avg_time, min_time, max_time, iterations);
MPI_Barrier(MPI_COMM_WORLD);
+loop_current = MPI_Wtime();
+loop_time = loop_current - loop_start;
+counter++;
+}
}
free(s_buf1);
modifications that were made to stream.c:
$ bash ~/horrible-diff.sh /curc/tools/src/stream/5.9/stream.c /projects/molu8455/redhat_6/software/stream/stream.c
--- /dev/fd/63 2015-05-29 12:30:38.994071470 -0600
+++ /dev/fd/62 2015-05-29 12:30:38.995071474 -0600
@@ -55,7 +55,7 @@
*/
#ifndef N
-# define N 2000000
+# define N 512000000
#endif
#ifndef NTIMES
# define NTIMES 10