-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][HIP] Support amd-gpu-gfx1034 as an acceptable value for -fsycl-targets #8106
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
Conversation
I have a question about RDNA3. Need gfx1100, 1101, 1102, 1103 be added ? |
Only ROCm supported AMD GPU architectures are supported. Unfortunately, I could not find an up to date list of the ROCm supported AMD GPU architectures. If they can be verified to be ROCm supported, they will be added. |
This is why I would just pass down the stream the AMD GPU architecture without doing any validation here. |
Looking at the existing list in the code, there are super old AMD GPU which are not or at least no longer supported by ROCm for ages anyway (gfx700...). |
The list is prepared based on the information at https://llvm.org/docs/AMDGPUUsage.html. |
sycl/doc/extensions/experimental/sycl_ext_oneapi_device_architecture.asciidoc
Outdated
Show resolved
Hide resolved
That makes sense. |
Browsing your changes let me know about adding new devices. So, I find codes related to gfx11xx devices in the AMD LLVM repo (https://github.com/RadeonOpenCompute/llvm-project) Basic/Cuda.cpp: GFX(1100), // gfx1100 |
@zjin-lcf |
I don't have gfx11xx devices for evaluation. I thought that users would not file a bug report similar to the one you are solving when they are evaluating SYCL with any of the four gfx11xx devices. |
I also think that just letting users specify whatever they want is a better approach. Maybe having extensive validation for "convenience" syntax Opening an issue, waiting for a fix, bumping the feature test macro, all the while preventing the people from testing the code on the device, I think, is a maintenance burden and not very user-friendly. |
@al42and thanksI agree. |
That said, this patch fixes the problem with |
…he wording in the "experimental extension" - Remov `Added in version` for supported architectures.
sycl/doc/extensions/experimental/sycl_ext_oneapi_device_architecture.asciidoc
Outdated
Show resolved
Hide resolved
sycl/doc/extensions/experimental/sycl_ext_oneapi_device_architecture.asciidoc
Show resolved
Hide resolved
- Adds experimental table instead of version one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Spec and doc changes LGTM.
Failed Tests (1): I hope this failure is not related to the patch. This test fails in pre-commit for other PRs as well. |
@bader Is a gfx1034 device needed for the test ? |
This is the question for @mmoadeli. |
Added in version
for supported architectures.