32f9fa6ca5
* Add for rocpd testing and output validation Add for transpose, video-decode, jpeg-decode, roctx, and openmp-target Add JSON check to pre-commit-config Co-authored-by: Marjan Antic <Marjan.Antic@amd.com> * Remove redundant environment variable * Fix spelling typo * Fix typo in error message * Fix memory_allocation query * Incorperate feedback from review. Handle case where there are multiple matching "name_prefix" tables. * Fix environment settings in `rocprof-sys-testing.cmake` Accidently removed in previous refactoring. * Formatting python file --------- Co-authored-by: Marjan Antic <Marjan.Antic@amd.com>
59 строки
2.5 KiB
JSON
59 строки
2.5 KiB
JSON
{
|
|
"required_tables": [
|
|
{
|
|
"min_rows": 1,
|
|
"name_prefix": "rocpd_info_pmc_",
|
|
"required_columns": [
|
|
"agent_id",
|
|
"target_arch",
|
|
"name",
|
|
"symbol",
|
|
"description",
|
|
"units",
|
|
"value_type"
|
|
],
|
|
"validation_queries": [
|
|
{
|
|
"comparison": "greater_than",
|
|
"description": "Check for jpeg_activity amd-smi metrics",
|
|
"error_message": "Did not find jpeg_activity in amd-smi metrics",
|
|
"expected_result": 1,
|
|
"query": "SELECT COUNT(*) as count FROM {table_name} WHERE symbol LIKE 'JpegAct%'"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"min_rows": 500,
|
|
"name_prefix": "rocpd_pmc_event_",
|
|
"required_columns": [
|
|
"event_id",
|
|
"pmc_id",
|
|
"value"
|
|
],
|
|
"validation_queries": [
|
|
{
|
|
"comparison": "greater_than",
|
|
"description": "Check for amd-smi monitoring busy times",
|
|
"error_message": "Less than expected number of captured amd-smi mm-busy samples!",
|
|
"expected_result": 50,
|
|
"query": "SELECT COUNT(*) as count FROM {table_name} event JOIN rocpd_info_pmc info ON event.pmc_id = info.id WHERE info.name = 'device_busy_mm'"
|
|
},
|
|
{
|
|
"comparison": "greater_than",
|
|
"description": "Check for amd-smi monitoring GPU memory usage",
|
|
"error_message": "Less than expected number of captured amd-smi memory-usage samples!",
|
|
"expected_result": 50,
|
|
"query": "SELECT COUNT(*) as count FROM {table_name} event JOIN rocpd_info_pmc info ON event.pmc_id = info.id WHERE info.name = 'device_memory_usage'"
|
|
},
|
|
{
|
|
"comparison": "greater_than",
|
|
"description": "Check for amd-smi monitoring JPEG activity",
|
|
"error_message": "Less than expected activity in amd-smi jpeg-activity samples!",
|
|
"expected_result": 50,
|
|
"query": "SELECT COUNT(*) as count FROM {table_name} event JOIN rocpd_info_pmc info ON event.pmc_id = info.id WHERE info.name LIKE 'device_jpeg_activity_%' and event.value > 0"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|