-
Notifications
You must be signed in to change notification settings - Fork 790
[SYCL][Doc] Add draft of sycl_ext_oneapi_prefetch #9282
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
Adds prefetch and joint_prefetch functions for providing prefetch hints associated with specific levels of cache. Signed-off-by: John Pennycook <john.pennycook@intel.com>
Prefetching into the lowest level of cache is consistent with the behavior of other prefetch extensions. On some hardware, prefetching into the lowest level of cache will populate all levels of cache, and many developers may expect this to be the default behavior.
Allows for additional information to be specified alongside a level of cache. The current proposal provides only a "nontemporal" hint that could be meaningful on multiple devices; additional extensions could define their own hints (e.g. pvc::uncached).
One open question for reviewers: Does it make sense to have The former is nice from a readability perspective, because "L1" is clearly a level of cache, whereas "1" could be anything. But the latter is nice from a verbosity perspective, because |
Use accessor<> directly and limit the TargetMode to target::device.
@bader - I think this can be merged, now. |
Adds prefetch and joint_prefetch functions for providing prefetch hints associated with specific levels of cache.