This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 ./cpu_profile.sh ./foo arg1 arg2 | |
# Give each *rank* a separate file | |
LOG=cpu_profile_$ALPS_APP_PE.nvprof | |
# Stripe each profile file by 1 to share the load on large runs | |
if [ ! -f "$LOG" ] ; then |