#!/usr/bin/env bash

OUTPUT=/tmp/my_prof.nvprof
NVVP=true

sudo /usr/local/cuda/bin/nvprof -f -s -o $OUTPUT ~/driving/bazel-bin/experimental/max/stress_tests/pcie_stress "$@"
if [ $NVVP ]; then
  /usr/local/cuda/bin/nvvp $OUTPUT
fi
