Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #!/bin/bash
  2. # USAGE: Add between aprun options and executable
  3. # For Example: aprun -n 16 -N 1 ./foo arg1 arg2
  4. # Becomes: aprun -n 16 -N 1 ./nvprof.sh ./foo arg1 arg2
  5. export PMI_NO_FORK=1
  6.  
  7. # Give each *node* a separate file
  8. LOG=timeline_$(hostname).nvprof
  9.  
  10. # Stripe each profile file by 1 to share the load on large runs
  11. lfs setstripe -c 1 $LOG
  12.  
  13. # Execute the provided command.
  14. exec nvprof -o $LOG $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement