Skip to content

Replaced deprecated cl::sycl namespace with sycl #898

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 3 commits into from
Sep 8, 2022

Conversation

oleksandr-pavlyk
Copy link
Contributor

@oleksandr-pavlyk oleksandr-pavlyk commented Sep 4, 2022

Building dpctl with intel/llvm DPC++ compiler one can see

~/sycl_workspace/dpctl/libsyclinterface/source/dpctl_sycl_queue_interface.cpp:37:19: warning: 'cl' is deprecated: cl::sycl is deprecated, use ::sycl in
stead. [-Wdeprecated-declarations]
using namespace cl::sycl;
                  ^

This PR removes use of cl::sycl namespace in favor of recommended sycl namespace.

This PR also removes use of sycl::info::device::profile deprecated descriptor from print_device_info function, and removed
DPCTLDevice_IsUnifiedHostMemory function exposing deprecated descriptor sycl::info::device::host_unified_memory.

Open source compiler now compiles the code without deprecation warnings.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to an issue with a reproducer?
  • Have you tested your changes locally for CPU and GPU devices?
  • Have you made sure that new changes do not introduce compiler warnings?
  • If this PR is a work in progress, are you filing the PR as a draft?

@github-actions
Copy link

github-actions bot commented Sep 4, 2022

@coveralls
Copy link
Collaborator

coveralls commented Sep 4, 2022

Coverage Status

Coverage increased (+0.04%) to 81.872% when pulling 5dfa07c on remove-deprecations into f48cf30 on master.

diptorupd
diptorupd previously approved these changes Sep 7, 2022
Copy link
Contributor

@diptorupd diptorupd left a comment

Choose a reason for hiding this comment

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

Please move the changes to sycl_function.cpp and examples/cython/sycl_direct_linkage/_buffer_example.pyx to a separate commit.

Otherwise LGTM!

Removed use of deprecated `sycl::info::device::profiling`
from `print_device_info` function.

Removed `DPCTLDevice_IsUnifiedHostMemory` which was DPCTL
interface to deprecated `info::device::host_unified_memory`
descriptor now that aspects are implemented.
The function now gets execution queue by value rather than by reference.
This is the recommended usage since ``sycl::queue`` is implemented as
a shared pointer.
@oleksandr-pavlyk oleksandr-pavlyk merged commit 09b2555 into master Sep 8, 2022
@oleksandr-pavlyk oleksandr-pavlyk deleted the remove-deprecations branch September 8, 2022 01:38
@github-actions
Copy link

github-actions bot commented Sep 8, 2022

Deleted rendered PR docs from intelpython.github.com/dpctl, latest should be updated shortly. 🤞

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.

3 participants