Skip to content

revert(hipdnn): remove Python bindings from TheRock#6425

Open
tvy-amd wants to merge 9 commits into
mainfrom
users/tvy/revert-hipdnn-python-bindings
Open

revert(hipdnn): remove Python bindings from TheRock#6425
tvy-amd wants to merge 9 commits into
mainfrom
users/tvy/revert-hipdnn-python-bindings

Conversation

@tvy-amd

@tvy-amd tvy-amd commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Summary

We thought hipDNN bindings were going to land in TheRock artifacts, but the new artitecture is that we are going to have a different repo for all bindings.
So, this PR reverts TheRock-side hipDNN Python binding build, packaging, and wheel-validation CI wiring added by PR #5429, so binding-specific CI can move out of TheRock per ALMIOPEN-2285. JIRA ID : ALMIOPEN-2285

Risk Assessment

Medium risk. The user risk hint was low, but this changes hipDNN build, package, and test infrastructure by removing TheRock Python binding paths; local test-matrix unit coverage and formatting checks passed, with PR CI still needed for build and artifact validation.

ASIC Coverage

Standard PR CI is sufficient. This is ASIC-independent build, CI, and artifact packaging cleanup that removes hipDNN Python binding wiring from TheRock; it does not change kernels, provider support surface, dispatch behavior, or GPU defaults, so no dedicated multi-arch sweep is required.

Testing Summary

  • Local Python unit coverage validates CI test-matrix generation after removing the hipDNN Python bindings job entry.
  • Local formatting validation confirmed the changed Python files are Black-compliant.
  • Reference search confirmed no remaining nanobind, robin-map, therock-nanobind, or therock-robin-map references in touched TheRock build/test areas.
  • PR CI is pending and must validate the CMake, artifact packaging, and repository pre-commit effects.

Testing Checklist

  • Test matrix unit tests - python -m unittest build_tools.github_actions.tests.fetch_test_configurations_test - Status: Passed
  • Python formatting - python -m black --check build_tools/github_actions/tests/fetch_test_configurations_test.py - Status: Passed
  • Dependency reference check - Search for nanobind, robin-map, therock-nanobind, and therock-robin-map references - Status: Passed
  • PR CI - GitHub PR checks - Status: Pending

Technical Changes

  • Removes the disabled hipDNN Python bindings CI matrix entry and deletes the wheel-packaging and frontend pytest scripts from TheRock.
  • Stops configuring hipDNN with Python bindings enabled and removes TheRock build dependencies only needed by that bindings path.
  • Removes share/hipdnn/python/** artifact include/exclude rules and the shared loader-environment helper used only by the deleted Python binding test.
  • Removes the now-unused third-party/nanobind and third-party/robin-map CMake subprojects from the third-party build list.
  • Keeps the required companion test-file change non-functional; no new test behavior is added.

tvy-amd added 2 commits July 8, 2026 11:07
…heel validation test, and CI matrix entry (#5429)"

This reverts commit f6069c3.
@therock-pr-bot

therock-pr-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

✅ All Checks Passed — Ready for Review

Check Status Details
🌿 Branch Name ✅ Pass
📝 PR Title/Description ✅ Pass
Forbidden Files ✅ Pass
🧪 Unit Test ✅ Pass
🔎 pre-commit ✅ Pass
🚫 Draft PR 🔜 To Be Enabled
🚩 Feature Flag 🔜 To Be Enabled
📊 Code Coverage 🔜 To Be Enabled
🤖 therock-pr-bot ✅ Pass

🎉 All checks passed! This PR is ready for review.

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

@therock-pr-bot therock-pr-bot Bot added the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 8, 2026
@therock-pr-bot

therock-pr-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

🎉 All checks passed! This PR is ready for review.

@therock-pr-bot

therock-pr-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

Pre-commit check failed

pre-commit failed

Please run locally:

  • python -m pip install pre-commit
  • pre-commit install
  • pre-commit run --all-files --show-diff-on-failure

This repo uses .pre-commit-config.yaml.

@therock-pr-bot therock-pr-bot Bot removed the Not ready to Review PR has unresolved policy failures — reviews blocked label Jul 8, 2026
Comment thread third-party/nanobind/CMakeLists.txt Outdated
therock_subproject_fetch(therock-nanobind-sources
CMAKE_PROJECT
# Originally mirrored from: https://github.com/wjakob/nanobind/archive/refs/tags/v2.12.0.tar.gz
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/nanobind-2.12.0.tar.gz

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll ask to remove these artifacts after this PR is in

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.

Did we double check no one else is using these since they were added?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Double checked in TheRock and doesn't seem like anyone is using this

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Right now it is unused but even if we move the hipDNN bindings to a separate repo (and eventually we have more than one?), do you intend to build nanobind there or should TheRock provide these deps?

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.

I think it makes sense to keep the artifacts uploaded, and use those until it's clear where the new final home is.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I believe TheRock shouldn't provide the dependencies; since in the future it will be rocm-libraries ->TheRock->rocm-bindings. If it did, it would cause a cycle dependencies.

So mostly likely rocm-bindings will build nanobind.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I will keep the artifacts around in s3 then

Comment thread build_tools/github_actions/test_executable_scripts/hipdnn/pack_frontend_wheel.py Outdated
@tvy-amd tvy-amd marked this pull request as ready for review July 8, 2026 19:02
@tvy-amd tvy-amd requested review from ScottTodd, geomin12 and marbre and removed request for ScottTodd and geomin12 July 8, 2026 19:03
Comment thread build_tools/github_actions/tests/fetch_test_configurations_test.py

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

Looks good, but we need to double check no one else started depending on the 3rd party deps, or any of the common scripts we added.

If they are confirmed fully dead code, then we should be good to remove.

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

i see build failures. don't seem unrelated, so worth a retry

i also agree Brian, we should make sure this builds all properly and double check that no components use this. a search should solve that though

Comment thread ml-libs/CMakeLists.txt
"-DHIP_DNN_SKIP_TESTS=$<NOT:$<BOOL:${THEROCK_BUILD_TESTING}>>"
-DHIP_DNN_BUILD_PLUGINS=OFF
-DHIP_DNN_GENERATE_SDK_HEADERS=OFF
-DHIPDNN_BUILD_PYTHON_BINDINGS=ON

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should this be rather set explicitly to OFF?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm actually removing this option in rocm-libraries. It is defaulted off so it's fine to remove here.

therock_subproject_fetch(therock-nanobind-sources
CMAKE_PROJECT
# Originally mirrored from: https://github.com/wjakob/nanobind/archive/refs/tags/v2.12.0.tar.gz
URL https://rocm-third-party-deps.s3.us-east-2.amazonaws.com/nanobind-2.12.0.tar.gz

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Right now it is unused but even if we move the hipDNN bindings to a separate repo (and eventually we have more than one?), do you intend to build nanobind there or should TheRock provide these deps?

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

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

4 participants