Created
January 29, 2020 20:05
-
-
Save jefflarkin/ffb9811696445e0671c6b6fc84280be3 to your computer and use it in GitHub Desktop.
NVIDIA Nsight Systems Recipes
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
import pandas as pd | |
import numpy as np | |
import sqlite3 | |
kernels = pd.read_sql_query("select StringIds.value as name, num, min as 'min (ns)', max as 'max (ns)', avg as 'avg (ns)', total as 'total (ns)' from cudaKernelStats INNER JOIN stringIds on stringIds.id == shortName order by total desc", sqlite3.connect("report1.sqlite")) | |
kernels["min (s)"] = kernels["min (ns)"] / 1e9 | |
kernels["max (s)"] = kernels["max (ns)"] / 1e9 | |
kernels["avg (s)"] = kernels["avg (ns)"] / 1e9 | |
kernels["total (s)"] = kernels["total (ns)"] / 1e9 | |
print(kernels) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment