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

Replace use of queue mgr #1735

Merged
merged 10 commits into from
Mar 20, 2024
Merged

Replace use of queue mgr #1735

merged 10 commits into from
Mar 20, 2024

Conversation

oleksandr-pavlyk
Copy link
Contributor

DPCTLQueueMgr_* is being removed, see IntelPython/dpctl#1576.

This PR removes use of DPCTLQueueMgr_* in queue_sycl.cpp and queue_sycl.hpp.

It effectively reverts to using DPNP_LOCAL_QUEUE=1.

Examples, documentation were also updated to avoid uses of device_selector as it is being removed.

  • Have you provided a meaningful PR description?
  • Have you added a test, reproducer or referred to 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?
  • Have you checked performance impact of proposed changes?
  • If this PR is a work in progress, are you filing the PR as a draft?

Copy link
Contributor

github-actions bot commented Mar 1, 2024

View rendered docs @ https://intelpython.github.io/dpnp/index.html

This is done by reverting to DPNP_LOCAL_QUEUE=1 behavior.

The ultimate goal is to get rid of DPNP_QUEUE throughout
dpnp codebase
Since DPNP_LOCAL_QUEUE has been removed.
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the replace-use-of-queue-mgr branch from db48050 to 6309f26 Compare March 17, 2024 02:17
@oleksandr-pavlyk
Copy link
Contributor Author

This change should not have made any difference, but please see if tests say otherwise.

Renamed backend_sycl_singleton back to backend_sycl

Removed dpnp_queue_initialize_c function and
QueueOptions enum as no longer used. Removed uses of these
from examples and code base
dpnp/backend/src/queue_sycl.hpp Outdated Show resolved Hide resolved
dpnp/backend/src/queue_sycl.hpp Outdated Show resolved Hide resolved
@oleksandr-pavlyk oleksandr-pavlyk force-pushed the replace-use-of-queue-mgr branch from 2c266f9 to ac1b43a Compare March 19, 2024 13:10
Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

@oleksandr-pavlyk, thanks a lot for implementing a proper local queue handing in dpnp.

@oleksandr-pavlyk
Copy link
Contributor Author

@antonwolfy Are we good to merge?

Copy link
Contributor

@antonwolfy antonwolfy left a comment

Choose a reason for hiding this comment

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

I don't have any comment. Thank you @oleksandr-pavlyk

@antonwolfy antonwolfy merged commit b51100f into master Mar 20, 2024
45 checks passed
@antonwolfy antonwolfy deleted the replace-use-of-queue-mgr branch March 20, 2024 12:09
github-actions bot added a commit that referenced this pull request Mar 20, 2024
* Remove use of deprecated DPCTLQueueMgr_* functions

This is done by reverting to DPNP_LOCAL_QUEUE=1 behavior.

The ultimate goal is to get rid of DPNP_QUEUE throughout
dpnp codebase

* Removed setting DPNP_LOCAL_QUEUE in tests

Since DPNP_LOCAL_QUEUE has been removed.

* Removed uses of device_context

* Removed trailing whitespace

* Replaced tab with spaces

* Use backend_sycl_singleton, remove backend_sycl

* Removed pre-preprocessor fenced out dead code

Renamed backend_sycl_singleton back to backend_sycl

Removed dpnp_queue_initialize_c function and
QueueOptions enum as no longer used. Removed uses of these
from examples and code base

* Formatting suggested by pre-commit hooks

* Addressed issues raised by @diptorupd

---------

Co-authored-by: Anton <[email protected]> b51100f
github-actions bot added a commit to antonwolfy/dpnp that referenced this pull request Mar 20, 2024
* Remove use of deprecated DPCTLQueueMgr_* functions

This is done by reverting to DPNP_LOCAL_QUEUE=1 behavior.

The ultimate goal is to get rid of DPNP_QUEUE throughout
dpnp codebase

* Removed setting DPNP_LOCAL_QUEUE in tests

Since DPNP_LOCAL_QUEUE has been removed.

* Removed uses of device_context

* Removed trailing whitespace

* Replaced tab with spaces

* Use backend_sycl_singleton, remove backend_sycl

* Removed pre-preprocessor fenced out dead code

Renamed backend_sycl_singleton back to backend_sycl

Removed dpnp_queue_initialize_c function and
QueueOptions enum as no longer used. Removed uses of these
from examples and code base

* Formatting suggested by pre-commit hooks

* Addressed issues raised by @diptorupd

---------

Co-authored-by: Anton <[email protected]> b51100f
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