447025011a
* fix: resolve crash when profiling TensorFlow GPU application * incorporate review comments * updated min_rows from 3 to 2 for threads table validation as internal threads are not profiled and are now correctly bypassed
77 regels
2.6 KiB
JSON
77 regels
2.6 KiB
JSON
{
|
|
"required_tables": [
|
|
{
|
|
"name": "top_kernels",
|
|
"required_columns": [
|
|
"name",
|
|
"total_calls",
|
|
"total_duration",
|
|
"average",
|
|
"percentage"
|
|
],
|
|
"validation_queries": [
|
|
{
|
|
"comparison": "equals",
|
|
"description": "Check for null function names",
|
|
"error_message": "Found API calls with null function names",
|
|
"expected_result": 0,
|
|
"query": "SELECT COUNT(*) FROM top_kernels WHERE name IS NULL"
|
|
},
|
|
{
|
|
"comparison": "greater_than",
|
|
"description": "Check that we have some kernel calls",
|
|
"error_message": "No kernel calls found in summary",
|
|
"expected_result": 0,
|
|
"query": "SELECT COUNT(*) FROM top_kernels"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"min_rows": 50,
|
|
"name": "kernels",
|
|
"required_columns": [
|
|
"id",
|
|
"category",
|
|
"name",
|
|
"start",
|
|
"end",
|
|
"queue",
|
|
"stream"
|
|
],
|
|
"validation_queries": [
|
|
{
|
|
"comparison": "equals",
|
|
"description": "Check for null function names",
|
|
"error_message": "Found kernels with null function names",
|
|
"expected_result": 0,
|
|
"query": "SELECT COUNT(*) as count FROM kernels WHERE name IS NULL"
|
|
},
|
|
{
|
|
"comparison": "greater_than",
|
|
"description": "Check that we have kernel entries",
|
|
"error_message": "No kernel entries found",
|
|
"expected_result": 50,
|
|
"query": "SELECT COUNT(*) as count FROM kernels"
|
|
},
|
|
{
|
|
"comparison": "equals",
|
|
"description": "Check for kernels with no active time",
|
|
"error_message": "Kernels with no active execution times found",
|
|
"expected_result": 0,
|
|
"query": "SELECT COUNT(*) as count FROM kernels WHERE (end - start) = 0"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"min_rows": 2,
|
|
"name": "threads",
|
|
"required_columns": [
|
|
"tid",
|
|
"start",
|
|
"end",
|
|
"name"
|
|
]
|
|
}
|
|
]
|
|
}
|