Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # USAGE: Add between aprun options and executable
- # For Example: aprun -n 16 -N 1 ./foo arg1 arg2
- # Becomes: aprun -n 16 -N 1 ./nvprof.sh ./foo arg1 arg2
- export PMI_NO_FORK=1
- # Give each *node* a separate file
- LOG=timeline_$(hostname).nvprof
- # Stripe each profile file by 1 to share the load on large runs
- lfs setstripe -c 1 $LOG
- # Execute the provided command.
- exec nvprof -o $LOG $*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement