Dateien
rocm-systems/projects/rocprofiler-systems/tests/rocpd-validation-rules/default-rules.json
T
David Galiffi 32f9fa6ca5 Enable some simple ROCpd testing (#834)
* 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>
2025-10-20 17:40:10 -04:00

74 Zeilen
2.5 KiB
JSON

{
"required_tables": [
{
"name": "kernel_summary",
"required_columns": [
"name",
"calls",
"DURATION (nsec)"
],
"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(*) 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"
}
]
},
{
"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": 0,
"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": 0,
"name": "threads",
"required_columns": [
"tid",
"start",
"end",
"name"
]
}
]
}