ROCpd schema fetching from rocprofiler-sdk (#1501)
- Integrate rocprofiler-systems with rocprofiler-sdk-rocpd to fetch schema - If rocprofiler-sdk-rocpd is not availabe, use embedded schema files. With this we provide rocpd format support even if ROCm is not available - Include detection in CMake if rocprofiler-sdk-rocpd package is available (and valid), and build database class upon that - Update embedded schema that is used as a fallback. - Update some validation tests to account for schema changes.
此提交包含在:
@@ -1,11 +1,13 @@
|
||||
{
|
||||
"required_tables": [
|
||||
{
|
||||
"name": "kernel_summary",
|
||||
"name": "top_kernels",
|
||||
"required_columns": [
|
||||
"name",
|
||||
"calls",
|
||||
"DURATION (nsec)"
|
||||
"total_calls",
|
||||
"total_duration",
|
||||
"average",
|
||||
"percentage"
|
||||
],
|
||||
"validation_queries": [
|
||||
{
|
||||
@@ -13,14 +15,7 @@
|
||||
"description": "Check for null function names",
|
||||
"error_message": "Found API calls with null function names",
|
||||
"expected_result": 0,
|
||||
"query": "SELECT COUNT(*) as count FROM kernel_summary 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(*) as count FROM kernel_summary"
|
||||
"query": "SELECT COUNT(*) FROM top_kernels WHERE name IS NULL"
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -43,13 +38,6 @@
|
||||
"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": 0,
|
||||
"query": "SELECT COUNT(*) as count FROM kernels"
|
||||
},
|
||||
{
|
||||
"comparison": "equals",
|
||||
"description": "Check for kernels with no active time",
|
||||
|
||||
新增問題並參考
封鎖使用者