Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D darshan
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 72
    • Issues 72
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • darshan
  • darshan
  • Merge requests
  • !66

Merged
Created Nov 02, 2020 by Glenn K. Lockwood@glockDeveloper

support compilation with --without-mpi and --enable-mmap-logs

  • Overview 4
  • Commits 2
  • Changes 1

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 
...
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: gkl/issue277