Skip to content

Instantly share code, notes, and snippets.

@jefflarkin
Created January 29, 2020 20:05
Show Gist options
  • Save jefflarkin/ffb9811696445e0671c6b6fc84280be3 to your computer and use it in GitHub Desktop.
Save jefflarkin/ffb9811696445e0671c6b6fc84280be3 to your computer and use it in GitHub Desktop.
NVIDIA Nsight Systems Recipes
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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