[SYCL] Refine annotated_ptr address space based on compile-time USM kind #11623
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Right now the annotated_ptr extension applies compile-time properties on
decorated_global_ptr
for SYCL device code. As the SYCL extension sycl_ext_oneapi_usm_malloc_properties introduces compile-time property "usm_kind"(implemented in #10235 ), this PR further refines the address space of this pointer (usingdecorated_device_ptr
ordecorated_host_ptr
) whenusm_kind
property is specified in annotated_ptr type, and__SYCL_DEVICE_ONLY__
and__ENABLE_USM_ADDR_SPACE__
are turned on (i.e. requiring compiler flags "-fsycl-device-only -fsycl-targets=spir64_fpga")Other changes:
annotated_ptr.hpp
out fromannotated_arg
file into a separate folderannotated_ptr_properties.hpp
for annotated_ptr specific properties