Skip to content

Instantly share code, notes, and snippets.

View estradjm's full-sized avatar
:octocat:
-

Jenn Lupiáñez estradjm

:octocat:
-
View GitHub Profile
@jefflarkin
jefflarkin / cpu_profile.sh
Created October 18, 2016 13:30
OLCF Hackathon Profiling Scripts
#!/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