-
Notifications
You must be signed in to change notification settings - Fork 744
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
[SPIR-V] Add support for SPV_INTEL_usm_storage_classes extension #1985
Conversation
It's a cherry-pick of KhronosGroup/SPIRV-LLVM-Translator#579 |
dc20a09
to
366e59e
Compare
With this extension 2 new Storage Classes are introduced: DeviceOnlyINTEL and HostOnlyINTEL appropriately mapped on global_device and global_host SYCL/OpenCL address spaces which are part of SYCL_INTEL_usm_address_spaces extension. Co-authored-by: Viktoria Maksimova <[email protected]> Signed-off-by: Dmitry Sidorov <[email protected]> Signed-off-by: Viktoria Maksimova <[email protected]>
366e59e
to
053e4d2
Compare
@bader can I ignore clang-format concerns or I shall apply it to spirv.hpp? |
Isn't clang-formating patches required by the translator project as well? |
They are required, but not firing in this case, prove: https://travis-ci.org/github/KhronosGroup/SPIRV-LLVM-Translator/jobs/701976405 . I think that is because spirv.hpp is excluded from clang-format there and it's not clang-formated in general. |
I see at least two solutions.
|
In the translator clang-format rules file is just a single line: @bader is it possible to merge the patch with a clang-format check failed? I see no required label. |
I meant "filter" not "rule" - more specifically using this script https://github.com/intel/llvm/blob/sycl/llvm-spirv/utils/check_code_format.sh in this workflow: https://github.com/intel/llvm/blob/sycl/.github/workflows/clang-format.yml#L21. This should fix your pre-commit checks.
Yes. Do you want to merge it with failing clang-format check? |
Thanks, I'll try to exclude spirv.hpp today.
Yes, since I'm not planning to apply clang-format to spirv.hpp anyway, hence there will be no changes in the code for this PR. |
In KhronosGroup/SPIRV-LLVM-Translator@667bf13 we renamed `-spirv-ocl-builtins-version` to `-spirv-target-env` but we missed updating a couple of spots. Signed-off-by: Sarnie, Nick <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@c150b88
With this extension 2 new Storage Classes are introduced:
DeviceOnlyINTEL and HostOnlyINTEL appropriately mapped on
global_device and global_host SYCL/OpenCL address spaces which
are part of SYCL_INTEL_usm_address_spaces extension.
Co-authored-by: Viktoria Maksimova [email protected]
Signed-off-by: Dmitry Sidorov [email protected]
Signed-off-by: Viktoria Maksimova [email protected]