Skip to content

[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

Merged
merged 2 commits into from
Jul 14, 2020

Conversation

MrSidims
Copy link
Contributor

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]

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]>
@mohammadfawaz
Copy link
Contributor

mohammadfawaz commented Jul 12, 2020

Thank you @MrSidims! This is very useful. It will allow USM pointers that are declared outside the kernel - using device_ptr and host_ptr - to have the correct address space in the corresponding kernel arguments. This will make address space resolution in the FPGA backend much cleaner :)

mlychkov
mlychkov previously approved these changes Jul 13, 2020
@elizabethandrews
Copy link
Contributor

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?

jbrodman
jbrodman previously approved these changes Jul 13, 2020
Copy link
Contributor

@jbrodman jbrodman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

premanandrao
premanandrao previously approved these changes Jul 13, 2020
Copy link
Contributor

@premanandrao premanandrao left a 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]>
@bader bader merged commit f5de5f5 into intel:sycl Jul 14, 2020
jsji pushed a commit that referenced this pull request Aug 11, 2023
Should be more cautious with inline namespaces

Signed-off-by: Sidorov, Dmitry <[email protected]>

Original commit:
KhronosGroup/SPIRV-LLVM-Translator@668a97d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants