support compilation with --without-mpi and --enable-mmap-logs
Just ifdef out an errant piece of MPI; resolves #277 (closed).
Configure on Cori (Cray XC) with
./configure --with-log-path-by-env=DARSHAN_OUTPUT_DIR,SLURM_SUBMIT_DIR,PWD --with-jobid-env=SLURM_JOBID --disable-cuserid --with-mem-align=8 --enable-mmap-logs --without-mpi CC=cc
Then run with
LD_PRELOAD=$PWD/lib/libdarshan.so DARSHAN_ENABLE_NONMPI=1 strace ls
Which shows (among other things) that the mmapped file is correctly opened:
openat(AT_FDCWD, "//tmp/glock_ls_id57107_mmap-log-13484784888195779073-0.darshan", O_RDWR|O_CREAT|O_EXCL, 0644) = 3
...
unlink("//tmp/glock_ls_id57107_mmap-log-13484784888195779073-0.darshan") = 0
openat(AT_FDCWD, "/global/homes/g/glock/src/git/darshan-dev/darshan-runtime/glock_ls_id57107_11-2-60646-11807293566270977978.darshan_partial", O_WRONLY|O_CREAT|O_EXCL, 0400) = 1
...
pwrite64(1, "x\234\355U;r\3330\20UJ\261I\221\v\344\2\"DQ\224\245\311\250\314\244\315d\322s@p"..., 683, 360) = 683
...
pwrite64(1, 0x2aaaaee41000, 360, 0) = 360
close(1) = 0
rename("/global/homes/g/glock/src/git/darshan-dev/darshan-runtime/glock_ls_id57107_11-2-60646-11807293566270977978.darshan_partial", "/global/homes/g/glock/src/git/darshan-dev/darshan-runtime/glock_ls_id57107_11-2-60646-11807293566270977978_1604364647.darshan") = 0
chmod("/global/homes/g/glock/src/git/darshan-dev/darshan-runtime/glock_ls_id57107_11-2-60646-11807293566270977978_1604364647.darshan", 0400) = 0
and the generated logfile is great:
$ ../darshan-util/darshan-parser --perf glock_ls_id57107_11-2-60646-11807293566270977978_1604364647.darshan
# darshan log version: 3.21
# compression method: ZLIB
# exe: ls
...