Skip to content

Instantly share code, notes, and snippets.

@bzamecnik
Created December 12, 2017 04:35
Show Gist options
  • Save bzamecnik/ee01fce1533c2d61a3f2aeee31ac78d6 to your computer and use it in GitHub Desktop.
Save bzamecnik/ee01fce1533c2d61a3f2aeee31ac78d6 to your computer and use it in GitHub Desktop.
Run nvprof for some ML model training and save db with commit and date.
CUDA_VISIBLE_DEVICES=0 \
/usr/local/cuda/bin/nvprof \
-o model_$(git rev-parse --short HEAD)_$(date +%Y%m%d-%H%M%S).sqlite \
python train.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment