Skip to content

[UR][HIP] Fix HIP adapter compilation on Windows #17702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 28, 2025

Conversation

ph0b
Copy link
Contributor

@ph0b ph0b commented Mar 28, 2025

I don't have access to a device to validate it's all perfect at runtime, but these fixes did let me build everything successfully, and the compiler was able to build Blender GPU kernels library on Windows, using HIP SDK 6.2.4 and VS2022 17.12.1.

@ph0b ph0b requested a review from a team as a code owner March 28, 2025 08:25
@ph0b ph0b requested a review from npmiller March 28, 2025 08:25
ph0b added 3 commits March 28, 2025 09:36
Converting ur_context_info_t (int32_t) to uint32_t was a narrowing
conversion and it was making Visual Studio compiler error out during
compilation.
Copy link
Contributor

@npmiller npmiller left a comment

Choose a reason for hiding this comment

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

I don't have a Windows machine with an AMD GPU either, but this looks reasonable, thanks for fixing it!

@npmiller
Copy link
Contributor

@intel/llvm-gatekeepers This is ready to merge

It looks like the PVC machine is down again, so the E2E jobs on that failed. But this PR only touches the HIP adapter, and it's build fixes for Windows so it shouldn't affect the PVC tests.

@martygrant
Copy link
Contributor

I'm happy to merge this, as you say it's unlikely this job will fail if the PVC runner was online

@martygrant martygrant merged commit 999c682 into intel:sycl Mar 28, 2025
40 of 43 checks passed
npmiller added a commit to npmiller/llvm that referenced this pull request Apr 9, 2025
* Fix links to configure.py and compile.py
  * Linking to the file in tree caused the link in the docs to just
    download the python script. It makes more sense to link to the
    github web UI for these as they should be used in a checkout anyway.
* Remove CUDA requiring device selector
  * Since intel#6203 the device selector
    should handle this case well.
* Update HIP backend limitations
  * HIP is no longer in beta
  * Windows isn't supported but intel#17702
    made the build work with it so it might work for some users.
  * Global offset has been supported since intel#5855
  * Add common limitations
* Update HIP for Nvidia section
  * This might work but is not supported
* Update HIP section
  * Recommended HIP version + testing platforms
  * HIP is no longer in beta
* Add note on target aliases for CUDA and HIP
kbenzie pushed a commit that referenced this pull request Apr 28, 2025
* Fix links to configure.py and compile.py
* Linking to the file in tree caused the link in the docs to just
download the python script. It makes more sense to link to the github
web UI for these as they should be used in a checkout anyway.
* Remove CUDA requiring device selector
* Since #6203 the device selector
should handle this case well.
* Update HIP backend limitations
  * HIP is no longer in beta
* Windows isn't supported but #17702
made the build work with it so it might work for some users.
* Global offset has been supported since
#5855
  * Add common limitations
* Update HIP for Nvidia section
  * This might work but is not supported
* Update HIP section
  * Recommended HIP version + testing platforms
  * HIP is no longer in beta
* Add note on target aliases for CUDA and HIP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants