-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL][FPGA] Change address space for USM pointers as kernel args #2095
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
Query for address space of USM pointer before adding the appropriate pointer argument of OpenCL kernel. If this address space is global_device or global_host - leave it as is. Signed-off-by: Dmitry Sidorov <[email protected]>
Thank you @MrSidims! This is very useful. It will allow USM pointers that are declared outside the kernel - using |
Change looks ok to me but I am not familiar with USM functionality. @premanandrao are you familiar with this? If not, do you know who can review this since Mariya is on vacation? Is it @jbrodman? |
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.
LGTM
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.
LGTM
Signed-off-by: Dmitry Sidorov <[email protected]>
6df3b5b
Should be more cautious with inline namespaces Signed-off-by: Sidorov, Dmitry <[email protected]> Original commit: KhronosGroup/SPIRV-LLVM-Translator@668a97d
Query for address space of USM pointer before adding the appropriate
pointer argument of OpenCL kernel. If this address space is
global_device or global_host - leave it as is.
Signed-off-by: Dmitry Sidorov [email protected]