rossumai / nvprof-tools

Python tools for NVIDIA Profiler
MIT License
21 stars 6 forks source link

Truncate mode is not necessary when using `--profile-api-trace none` #2

Open bzamecnik opened 6 years ago

bzamecnik commented 6 years ago

This option will suppress saving runtime/driver API calls that we remove from the sqlite file afterwards.

https://docs.nvidia.com/cuda/profiler-users-guide/index.html#nvprof-command-line-options-cuda

So use:

nvprof --profile-api-trace none -o foo.sqlite python train.py