Skip to content

Commit 7cb980a

Browse files
committed
walla (mpiimporter) is working on Shaheen
1 parent 67c5c55 commit 7cb980a

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

importer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ static char* sys_files[] = {
970970

971971
MPI_Bcast(&rc,1,MPI_INT,0,MPI_COMM_WORLD);
972972

973-
MPI_Bcast(&mtime,1,MPI_LONG_INT,0,MPI_COMM_WORLD);
973+
MPI_Bcast(&mtime,sizeof(time_t),MPI_BYTE,0,MPI_COMM_WORLD);
974974

975975
if (rc != 0) {
976976
PyErr_Format(PyExc_RuntimeError,

makeinc.shaheen

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ PYTHON_CFLAGS = -I${PYTHONPATH}/include/python2.7
66

77

88
CFLAGS = -std=c99 -fPIC -Wall -Wextra ${CFLAGS_DEBUG} -D_LARGEFILE64_SOURCE
9-
CFLAGS_DEBUG = -g3 -DDEBUG=1 -DMPIDEBUG=1
9+
CFLAGS_DEBUG = -g3 -DDEBUG=1
1010
LIBCPATH = /home/aron/bgpsys/lib
1111
LIBDL = -ldl
1212
LDSO = ld-2.4.so

mpiopen.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,10 @@ int mpistat(const char *path, struct stat *stat_buf)
228228
#endif
229229

230230
if(rc==0) {
231+
#ifdef MPIDEBUG
231232
MPI_Barrier(MPI_COMM_WORLD);
232233
printf("rank %d |%d| about to broadcast %zu bytes of stat buf %s\n",rank,__LINE__,sizeof(struct stat),path);
234+
#endif
233235
MPI_Bcast(stat_buf,sizeof(struct stat),MPI_BYTE,0,MPI_COMM_WORLD);
234236
#ifdef MPIDEBUG
235237
MPI_Barrier(MPI_COMM_WORLD);

shaheen/mpiimporter_test.ll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ cd $testdir
3636
logdir=${testdir}/test_runs
3737
mkdir -p ${logdir}
3838

39-
for np in 2
39+
for np in 2 4
4040
do
4141
mpirun -env LD_LIBRARY_PATH=${ldpath} -env PYTHONPATH=${bgp_python_path} \
42-
-mode VN -exp_env HOME -n $np ${bgp_python} -v test_import_numpy.py &> ${logdir}/bgp_python_${np}.txt
42+
-mode VN -exp_env HOME -n $np ${bgp_python} test_import_numpy.py &> ${logdir}/bgp_python_${np}.txt
4343
done

0 commit comments

Comments
 (0)