Skip to content

[SYCL][HIP] Rename the ROCm plugin to HIP #4418

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 6 commits into from
Sep 13, 2021
Merged

Conversation

npmiller
Copy link
Contributor

HIP is a better name in this case as it is the API the plugin is
actually built on rather than ROCm which is more of a framework.

As discussed this patch renames the ROCm plugin to HIP, it is thus very large but doesn't have any functional changes.

I tested it on both AMD and NVIDIA with check-sycl-hip and check-sycl-hip-on-device, and the results were the same than before this patch with check-sycl-rocm and check-sycl-rocm-on-device.

steffenlarsen
steffenlarsen previously approved these changes Aug 27, 2021
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Good stuff! Better get the renaming done sooner rather than later. Very minor comment that has little to do with these changes.

I am a bit on the fence about calling it "HIP AMD" and "HIP NVIDIA". Would "HIP ROCm" and "HIP CUDA" be more fitting?
I assume a similar patch is coming for https://github.com/intel/llvm-test-suite?

@steffenlarsen
Copy link
Contributor

Ping @malixian

@npmiller
Copy link
Contributor Author

Good stuff! Better get the renaming done sooner rather than later. Very minor comment that has little to do with these changes.

I am a bit on the fence about calling it "HIP AMD" and "HIP NVIDIA". Would "HIP ROCm" and "HIP CUDA" be more fitting?
I assume a similar patch is coming for https://github.com/intel/llvm-test-suite?

I went for that because the HIP defines are __HIP_PLATFORM_AMD__, and __HIP_PLATFORM_NVIDIA__ (they also have __HIP_PLATFORM_HCC__ and __HIP_PLATFORM_NVCC__ but I believe these might be deprecated). But I don't have strong opinions on this.

And yeas I'll have a PR for llvm-test-suite soon although it should still work fine with this patch.

Copy link
Contributor

@bader bader left a comment

Choose a reason for hiding this comment

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

LGTM. Just a couple of minor suggestions.

I also created a merge conflict by merging #4393, but it should be easy to resolve.

bader
bader previously approved these changes Aug 30, 2021
@npmiller
Copy link
Contributor Author

Matching PR in llvm-test-suite:

bader
bader previously approved these changes Sep 2, 2021
@bader bader requested a review from steffenlarsen September 2, 2021 10:29
steffenlarsen
steffenlarsen previously approved these changes Sep 2, 2021
Copy link
Contributor

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing the tests in the test-suite as well.

@npmiller npmiller dismissed stale reviews from steffenlarsen and bader via b0246ad September 2, 2021 11:35
@npmiller
Copy link
Contributor Author

npmiller commented Sep 2, 2021

I just fixed the backend name in the new test that showed up in the CI

steffenlarsen
steffenlarsen previously approved these changes Sep 2, 2021
bader
bader previously approved these changes Sep 2, 2021
@@ -12,7 +12,7 @@
// UNSUPPORTED: cuda
//
// Linking issues with AMD:
// XFAIL: rocm_amd
// XFAIL: hip_amd
Copy link
Contributor

Choose a reason for hiding this comment

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

This should rather be UNSUPPORTED: cuda,hip_amd, I believe, as esimd is only for Intel GPU.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh I see, updated to UNSUPPORTED: cuda || hip

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just realized hip is not a lit feature in this repo, it is in llvm-test-suite though, changed to hip_amd for now, the lit setup for this may require some refactoring in the future, it was a bit thrown off by the on-device tests move.

@npmiller npmiller dismissed stale reviews from bader and steffenlarsen via 8640daf September 2, 2021 14:56
bader
bader previously approved these changes Sep 2, 2021
kbobrovs
kbobrovs previously approved these changes Sep 2, 2021
Copy link
Contributor

@kbobrovs kbobrovs left a comment

Choose a reason for hiding this comment

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

sycl/test/esimd/odr.cpp LGTM

steffenlarsen
steffenlarsen previously approved these changes Sep 2, 2021
@npmiller npmiller dismissed stale reviews from steffenlarsen, kbobrovs, and bader via 4e3df36 September 2, 2021 17:45
bader
bader previously approved these changes Sep 2, 2021
@npmiller
Copy link
Contributor Author

npmiller commented Sep 3, 2021

Rebased and fixed merge conflicts

npmiller and others added 6 commits September 13, 2021 10:49
HIP is a better name in this case as it is the API the plugin is
actually built on rather than ROCm which is more of a framework.
Co-authored-by: Alexey Bader <alexey.bader@intel.com>
Co-authored-by: Alexey Bader <alexey.bader@intel.com>
hip is not a lit feature in the main repo, hip_amd is
@npmiller
Copy link
Contributor Author

Rebased and conflicts resolved

@bader
Copy link
Contributor

bader commented Sep 13, 2021

FYI: Jenkins/Precommit fails on SYCL :: FilterSelector/select.cpp.

llvm-test-suite/SYCL/FilterSelector/select.cpp:54:36: error: no member named 'rocm' in 'sycl::backend'
} else if (Backend == backend::rocm) {

intel/llvm-test-suite#426 should fix this error.

@bader bader merged commit facec17 into intel:sycl Sep 13, 2021
dongkyunahn-intel added a commit to dongkyunahn-intel/llvm-test-suite that referenced this pull request Sep 14, 2021
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.

5 participants