[dcmf] [PATCH 1/1] fix ad_testfs

Rob Latham robl at mcs.anl.gov
Tue Feb 12 17:36:50 CST 2008


ROMIO has a "secret" debugging driver called TESTFS, which simply prints out
traces of what I/O operation was going to happen (while not actually doing any
I/O).  Insanely useful for debugging application behavior, but would result in
segfaults without this patch

reworking of aggreagation logic in bluegene case resulted in uninitialied
aggregator array in testfs case

Signed-off-by: Rob Latham <robl at mcs.anl.gov>
---
 .../src/mpi/romio/adio/ad_testfs/ad_testfs_hints.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/lib/mpi/mpich2/src/mpi/romio/adio/ad_testfs/ad_testfs_hints.c b/lib/mpi/mpich2/src/mpi/romio/adio/ad_testfs/ad_testfs_hints.c
index 9c72bcd..2bb6e1b 100644
--- a/lib/mpi/mpich2/src/mpi/romio/adio/ad_testfs/ad_testfs_hints.c
+++ b/lib/mpi/mpich2/src/mpi/romio/adio/ad_testfs/ad_testfs_hints.c
@@ -7,6 +7,7 @@
 
 #include "ad_testfs.h"
 #include "adioi.h"
+#include "../ad_bgl/ad_bgl.h"
 
 void ADIOI_TESTFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code)
 {
@@ -21,5 +22,6 @@ void ADIOI_TESTFS_SetInfo(ADIO_File fd, MPI_Info users_info, int *error_code)
     FPRINTF(stdout, "[%d/%d]    calling ADIOI_GEN_SetInfo\n", 
 	    myrank, nprocs);
 
-    ADIOI_GEN_SetInfo(fd, users_info, error_code);
+    /* BlueGene hack: force testfs to mimic BlueGene hints */
+    ADIOI_BGL_SetInfo(fd, users_info, error_code);
 }
-- 
1.5.3.8




More information about the dcmf mailing list