Skip to content

pm4 packet regression tests (revised)#20

Closed
rocm-devops wants to merge 6 commits intoamd-stagingfrom
sauverma/packet-regression-tests
Closed

pm4 packet regression tests (revised)#20
rocm-devops wants to merge 6 commits intoamd-stagingfrom
sauverma/packet-regression-tests

Conversation

@rocm-devops
Copy link

Note: This PR is a re-work of #98. It no longer does html reports

These tests do the following:

  1. Generates packet dump files for PMC/SQTT/SPM for supported GFX and blocks
  2. Compares the packet dumps against baseline packet dumps using pytest
  3. pytest reports which packet dumps failed. E.g - which PMC block, SQTT, SPM block
  4. Tests build only with AQLPROFILE_BUILD_TESTS. Meant to run in CI.
  5. Packet dumps for each GPU are separate. Test runs for a specific GPU and detects the gfx_version automatically;
    hence it needs proper rocm setup.
  6. Users can see the exact command packets which are different from the baseline by comparing the debug_trace.txt logs manually.
  7. The dumps files are per GPU. Support for any GPU can be added easily by simply adding baseline files

Expected folder structure of dump:

image

Change-Id: Icfca17ddac5b9312f145394ede553562cf3ada60
1. Added Cmake
2. Added regression test workflow
3. Added baseline files

Change-Id: Ic51145b412aa93f95cce082f4f42acb57b6e5aca
Change-Id: I5a4a55b20f4e8afefa1ae800024e8641790f70ee
Change-Id: Ieb39c90294d8fa868377b4cc54a7f429aea1948c
Change-Id: I4de4eacffeb06f4e69b1939dc1e37d8e837880cb
1. Replaced bash script with python script to run tests
2. Improved cmake

Change-Id: I68f9230c4f99dd0796f6349b5b85e23918082bf1
@ammallya
Copy link
Collaborator

ammallya commented Aug 7, 2025

Imported to ROCm/rocm-systems

@ammallya ammallya closed this Aug 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants