Skip to content
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

FPGA: Fix namespace of deivce_ptr and host_ptr #2291

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

steffenlarsen
Copy link

Existing Sample Changes

Description

The device_ptr and host_ptr aliases in DPC++ is from the sycl_ext_intel_usm_address_spaces and as such is under the sycl::ext::intel namespace, rather than the sycl namespace. This commit fixes the namespaces of all uses of these aliases.

Replaces #2288.

External Dependencies

None.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Implement fixes for ONSAM Jiras

How Has This Been Tested?

Following the build instructions in each of the respective sample directories.

  • Command Line
  • oneapi-cli
  • Visual Studio
  • Eclipse IDE
  • VSCode
  • When compiling the compliler flag "-Wall -Wformat-security -Werror=format-security" was used

The device_ptr and host_ptr aliases in DPC++ is from the
[sycl_ext_intel_usm_address_spaces](sycl/doc/extensions/supported/sycl_ext_intel_usm_address_spaces.asciidoc)
and as such is under the sycl::ext::intel namespace, rather than the
sycl namespace. This commit fixes the namespaces of all uses of these
aliases.

Signed-off-by: Larsen, Steffen <steffen.larsen@intel.com>
@steffenlarsen steffenlarsen mentioned this pull request Apr 19, 2024
9 tasks
@yuguen-intel yuguen-intel changed the title Fix namespace of deivce_ptr and host_ptr FPGA: Fix namespace of deivce_ptr and host_ptr Apr 19, 2024
@yuguen-intel yuguen-intel self-requested a review April 19, 2024 08:20
@yuguen-intel
Copy link
Contributor

What version of the compiler are you using to test this?
Internal regression tests are passing with 2024.2

@steffenlarsen
Copy link
Author

This is to adjust for upcoming releases, including current https://github.com/intel/llvm. Note that sycl::device_ptr and sycl::host_ptr were deprecated in 2024.2.

@yuguen-intel
Copy link
Contributor

Ok - thanks I'll keep your PR opened for now until the FPGA compiler integrates this upstream change - I'll merge your PR then

@yuguen-intel
Copy link
Contributor

Some have been addressed (but not all) I'm still keeping this PR opened as I don't have a way to test it now, and we are close to the 2024.2 release.
This will get merged in the 2025.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants