Skip to content

fix(hip): fix the include of other platforms - #14371

Merged
cjatin merged 1 commit into
developfrom
users/jatin/fix_includes
Oct 28, 2026
Merged

cjatin merged 1 commit into
developfrom
users/jatin/fix_includes

Conversation

@cjatin

@cjatin cjatin commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Motivation

Change the include from quote to angled bracket.

Technical Details

Currently this does not include headers on other platforms. Changing the angled fixes it.

Issue Tracking

No JIRA is raised for this, this got highlighted via an email

Test Plan

existing test should pass.

Test Result

Awaiting CI Results

Submission Checklist

@cjatin
cjatin requested review from a team as code owners October 27, 2026 15:29
Copilot AI balanced review requested due to automatic review settings October 27, 2026 15:29
@therock-pr-bot

Copy link
Copy Markdown

❌ PR Check — Action Required

Check Status Details
📝 PR 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 ⚠️ 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/hip/include/hip/driver_types.h, projects/hip/include/hip/library_types.h, projects/hip/include/hip/texture_types.h; no test file found
🔎 pre-commit ⏳ Pending ⏳ Still running…
🚫 Draft PR 🔜 To Be Enabled —
🚩 Feature Flag 🔜 To Be Enabled —
📊 Code Coverage 🔜 To Be Enabled —

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

🚫 Please fix the failed policies

  • ❌ PR Description

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.

🙋 Wish to Override Policy?

@therock-pr-bot

Copy link
Copy Markdown

🚫 Please fix the failed policies before requesting reviews.

The following policy checks failed:

  • ❌ PR Description

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

Copilot AI 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.

🟢 Approval recommended

The three focused include changes correct header lookup without identified blocking issues; CI results remain pending.

No open issues 🎉

What changed in this PR

This PR fixes NVIDIA header lookup in HIP’s platform wrappers by using angle-bracket includes instead of quoted includes.

Changes:

  • Prevents the three wrappers from including themselves through local header lookup.
  • Leaves AMD-specific behavior unchanged.
File Description
projects/​hip/​include/​hip/​texture_types.h Uses angle brackets to locate NVIDIA texture types.
projects/​hip/​include/​hip/​library_types.h Uses angle brackets to locate NVIDIA library types.
projects/​hip/​include/​hip/​driver_types.h Uses angle brackets to locate NVIDIA driver types.

Review effort: Balanced

@cjatin
cjatin merged commit 0032e21 into develop Oct 28, 2026
677 of 707 checks passed
@cjatin
cjatin deleted the users/jatin/fix_includes branch October 28, 2026 14:01
systems-assistant Bot pushed a commit to ROCm/hip that referenced this pull request Oct 28, 2026
## Motivation

Change the include from quote to angled bracket.

## Technical Details

Currently this does not include headers on other platforms. Changing the
angled fixes it.

## Issue Tracking

No JIRA is raised for this, this got highlighted via an email

## Test Plan

existing test should pass.

## Test Result

Awaiting CI Results

## Submission Checklist

- [x] Look over the contributing guidelines at
https://github.com/ROCm/rocm-systems/blob/develop/CONTRIBUTING.md.
[rocm-systems] ROCm/rocm-systems#14371 (commit 0032e21)
ywang103-amd pushed a commit that referenced this pull request Oct 28, 2026
## Motivation

Change the include from quote to angled bracket.

## Technical Details

Currently this does not include headers on other platforms. Changing the
angled fixes it.

## Issue Tracking

No JIRA is raised for this, this got highlighted via an email

## Test Plan

existing test should pass.

## Test Result

Awaiting CI Results

## Submission Checklist

- [x] 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