Skip to content

[rocprofiler-sdk] Handle validate tests script when Blit kernels are used for mem copies#3241

Open
venkat1361 wants to merge 3 commits intodevelopfrom
users/venkat1361/fix-psdb-tests
Open

[rocprofiler-sdk] Handle validate tests script when Blit kernels are used for mem copies#3241
venkat1361 wants to merge 3 commits intodevelopfrom
users/venkat1361/fix-psdb-tests

Conversation

@venkat1361
Copy link
Contributor

@venkat1361 venkat1361 commented Feb 12, 2026

Motivation

Fix test failures in http://rocm-ci.amd.com//job/rocm-tests/40057/testReport/junit/tests/TestSuite/test_rocprofilerSdk/

Technical Details

  • sometimes simple-transpose binary is using blit kernels for mem copies, which causes tests to fail in psdb.

JIRA ID

SWDEV-578807

Test Plan

Test Result

Submission Checklist

@venkat1361 venkat1361 requested review from a team as code owners February 12, 2026 17:46
Copilot AI review requested due to automatic review settings February 12, 2026 17:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the rocprofv3 tracing validation script to be more tolerant of ROCr using rocclr “blit” kernels for memcpy operations, which can change the expected number and type of trace records.

Changes:

  • Relax kernel-dispatch count assertions and skip specific rocclr blit-kernel entries in kernel trace validation.
  • Relax memory-copy trace expectations from “exactly two directions” to “at least one”, and validate direction/agent-type consistency via iteration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@venkat1361 venkat1361 force-pushed the users/venkat1361/fix-psdb-tests branch from 597a361 to 2185be1 Compare February 12, 2026 21:12
kernel_dispatch_data = data["buffer_records"]["kernel_dispatch"]
assert len(kernel_dispatch_data) == 1
# Blit kernel maybe recorded, when greater than 1.
assert len(kernel_dispatch_data) >= 1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As we exepcted that kernel_dispatch_data only consisted of one valid kernel, but it can actually be more due to blit kernels?

assert len(memory_copy_input_data) > 0

directions = set()
valid_directions = ("MEMORY_COPY_HOST_TO_DEVICE", "MEMORY_COPY_DEVICE_TO_HOST")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just make this a set here instead of creating an expected_directions set from this variable later?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants