Skip to content

fix(clr): set correlation id on hipEventRecord markers - #13617

Merged
saleelk merged 1 commit into
developfrom
users/saleelk/FixEventCid
Oct 21, 2026
Merged

saleelk merged 1 commit into
developfrom
users/saleelk/FixEventCid

Conversation

@saleelk

@saleelk saleelk commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

hipEventRecord enqueues its EventMarker without batch flush, so Command::enqueue() never calls EnableProfiling() and the correlation id cleared in the EventMarker constructor stays 0. Every event-record barrier was then attributed to record 0 and drawn on stream-less lanes in the CLR profiler trace. Capture the current API's correlation id in the constructor.

Motivation

Technical Details

Issue Tracking

JIRA ID: AIRUNTIME-0

Test Plan

Test Result

Submission Checklist

@saleelk
saleelk requested a review from a team as a code owner October 16, 2026 04:25
@therock-pr-bot

Copy link
Copy Markdown

✅ All Policy Checks Passed

Check Status Details
📝 PR Description ✅ Pass —
⛔ Forbidden Files ✅ Pass —
🧪 Unit Test ⚠️ Warning Error: Source/code files changed without an accompanying unit test.
Expected: add at least one test file named like test_<name>.py / test_<name>.cpp (or <name>_test.*).
Current: code file(s) changed: projects/clr/hipamd/src/hip_event.hpp; no test file found
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

🎉 All policy checks passed!

📖 Need help? See the Policy FAQ for details on every check and how to fix failures.

🙋 Wish to Override Policy?

@mangupta mangupta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🤖 AI-assisted pre-review (for @mangupta)

Comment thread projects/clr/hipamd/src/hip_event.hpp Resolved
hipEventRecord enqueues its EventMarker without batch flush, so
Command::enqueue() never calls EnableProfiling() and the correlation id
cleared in the EventMarker constructor stays 0. Every event-record barrier
was then attributed to record 0 and drawn on stream-less lanes in the CLR
profiler trace. Capture the current API's correlation id in the constructor.
@saleelk
saleelk force-pushed the users/saleelk/FixEventCid branch from 3876f24 to 053d021 Compare October 19, 2026 06:23
@mangupta

Copy link
Copy Markdown
Contributor

🤖 AI-assisted pre-review (for @mangupta)

Re-reviewed the updated head (053d021179b6) — no new findings at or above the posting threshold.

@saleelk
saleelk merged commit 25c7cab into develop Oct 21, 2026
724 of 761 checks passed
@saleelk
saleelk deleted the users/saleelk/FixEventCid branch October 21, 2026 05:26
systems-assistant Bot pushed a commit to ROCm/clr that referenced this pull request Oct 21, 2026
 (#13617)

hipEventRecord enqueues its EventMarker without batch flush, so
Command::enqueue() never calls EnableProfiling() and the correlation id
cleared in the EventMarker constructor stays 0. Every event-record
barrier was then attributed to record 0 and drawn on stream-less lanes
in the CLR profiler trace. Capture the current API's correlation id in
the constructor.

## Motivation

<!-- Explain the purpose of this PR and the goals it aims to achieve.
-->

## Technical Details

<!-- Explain the changes along with any relevant GitHub links. -->

## Issue Tracking

<!-- Include a GitHub Issue and/or JIRA ID. Do not post any full JIRA
links here. -->
<!-- GitHub issue: ROCm/rocm-systems#1234 -->
JIRA ID: AIRUNTIME-0

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
[rocm-systems] ROCm/rocm-systems#13617 (commit 25c7cab)
dgaliffiAMD pushed a commit that referenced this pull request Oct 21, 2026
hipEventRecord enqueues its EventMarker without batch flush, so
Command::enqueue() never calls EnableProfiling() and the correlation id
cleared in the EventMarker constructor stays 0. Every event-record
barrier was then attributed to record 0 and drawn on stream-less lanes
in the CLR profiler trace. Capture the current API's correlation id in
the constructor.

## Motivation

<!-- Explain the purpose of this PR and the goals it aims to achieve.
-->

## Technical Details

<!-- Explain the changes along with any relevant GitHub links. -->

## Issue Tracking

<!-- Include a GitHub Issue and/or JIRA ID. Do not post any full JIRA
links here. -->
<!-- GitHub issue: #1234 -->
JIRA ID: AIRUNTIME-0

## Test Plan

<!-- Explain any relevant testing done to verify this PR. -->

## Test Result

<!-- Briefly summarize test outcomes. -->

## Submission Checklist

- [ ] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
@systems-assistant

Copy link
Copy Markdown
Contributor

TheRock Submodule Bump Activity

Newest first

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