Skip to content

kmd_driver_t: reject Windows multi-GPU configuration at attach time#8917

Open
czidev-amd wants to merge 1 commit into
developfrom
users/czissule/windows_multiagent
Open

kmd_driver_t: reject Windows multi-GPU configuration at attach time#8917
czidev-amd wants to merge 1 commit into
developfrom
users/czissule/windows_multiagent

Conversation

@czidev-amd

Copy link
Copy Markdown

Multi-GPU configurations on Windows are a documented known limitation of the HIP SDK Debugger. Rather than crash mid-session with an opaque fatal_error_t, detect the unsupported topology at the earliest opportunity (check_version(), called before enable_debug() and any GPU interaction) and return AMD_DBGAPI_STATUS_ERROR_RESTRICTION with a clear diagnostic.

ROCgdb already handles ERROR_RESTRICTION gracefully: it emits a warning and continues with CPU-only debugging.

Fixes: ROCM-9233

Multi-GPU configurations on Windows are a documented known limitation of
the HIP SDK Debugger.  Rather than crash mid-session with an opaque
fatal_error_t, detect the unsupported topology at the earliest opportunity
(check_version(), called before enable_debug() and any GPU interaction)
and return AMD_DBGAPI_STATUS_ERROR_RESTRICTION with a clear diagnostic.

ROCgdb already handles ERROR_RESTRICTION gracefully: it emits a warning
and continues with CPU-only debugging.

Fixes: ROCM-9233

Signed-off-by: Claudiu Zissulescu <claudiu.zissulescu-ianculescu@amd.com>
@czidev-amd
czidev-amd requested a review from a team as a code owner July 21, 2026 11:52
@therock-pr-bot

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ❌ Fail Error: PR description must reference a JIRA ID, ISSUE ID, or a GitHub closing keyword.
Expected: include a JIRA ID / ISSUE ID line (separator : or -, or omitted; value may be a JIRA key, a number with/without #, or a link), OR a closing keyword + issue reference. Accepted examples:
JIRA ID : TESTAUTO-6039
JIRA ID - #330
JIRA ID #330
JIRA ID (on separate line)
ROCM-25757
ISSUE ID : TESTUTO-3334
ISSUE ID #3334
ISSUE ID - TESTAUTO-3433
ISSUE ID (on separate line)
AIRUNTIME-2352
ISSUE ID : https://github.com/<org_name>/<repo_name>/issues/1234
Closes #10
Fixes octo-org/octo-repo#100
Resolves: #123
#123
https://github.com/<org_name>/<repo_name>/issues/123
Current: no valid JIRA/ISSUE/closing-keyword reference found
Forbidden Files ✅ Pass
🧪 Unit Test ❌ Fail 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/rocdbgapi/src/os_driver_kmd.cpp; no test file found
🔎 pre-commit ⏳ Pending ⏳ Still running…
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled

⚠️ 2 policy check(s) failed. Please address the issues above before this PR can be Reviewed.

🚫 Please fix the failed policies

  • ❌ PR Title/Description
  • ❌ Unit Test

The Not ready to Review label was added to this PR. Once all policies pass, the label is removed automatically.

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

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Title/Description
  • ❌ Unit Test

The Not ready to Review label has been added to this PR.
Once all policies pass, the label will be removed automatically.

@lumachad lumachad 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.

Just a nit. Looks reasonable to me otherwise.

if (m_agents.size () > 1)
{
warning ("GPU debugging on Windows supports only a single AMD GPU "
"debug agent; %zu agents were detected. GPU debugging will "

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.

Reads odd with the "debug agent; break". I'm not sure if that's was intended.

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.

2 participants