Skip to content

Replace use of queue mgr - #1735

Merged
antonwolfy merged 10 commits into
masterfrom
replace-use-of-queue-mgr
Mar 20, 2024
Merged

Replace use of queue mgr#1735
antonwolfy merged 10 commits into
masterfrom
replace-use-of-queue-mgr

Conversation

@oleksandr-pavlyk

Copy link
Copy Markdown
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?

@github-actions

github-actionsBot commented Mar 1, 2024

Copy link
Copy Markdown
Contributor

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-pavlykforce-pushed the replace-use-of-queue-mgr branch from db48050 to 6309f26CompareMarch 17, 2024 02:17
@oleksandr-pavlyk

Copy link
Copy Markdown
ContributorAuthor

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
Comment threaddpnp/backend/src/queue_sycl.hpp Outdated
Comment threaddpnp/backend/src/queue_sycl.hpp Outdated
@oleksandr-pavlyk
oleksandr-pavlykforce-pushed the replace-use-of-queue-mgr branch from 2c266f9 to ac1b43aCompareMarch 19, 2024 13:10

@antonwolfyantonwolfy left a comment

Copy link
Copy Markdown
Contributor

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.

Comment threaddpnp/backend/src/queue_sycl.hpp Outdated
Comment threaddpnp/backend/src/queue_sycl.hpp Outdated
@oleksandr-pavlyk

Copy link
Copy Markdown
ContributorAuthor

@antonwolfy Are we good to merge?

@antonwolfyantonwolfy left a comment

Copy link
Copy Markdown
Contributor

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 masterMar 20, 2024
@antonwolfy
antonwolfy deleted the replace-use-of-queue-mgr branch March 20, 2024 12:09
github-actionsBot 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 <100830759+antonwolfy@users.noreply.github.com> b51100f
github-actionsBot 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 <100830759+antonwolfy@users.noreply.github.com> b51100f
Sign up for freeto 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

@oleksandr-pavlyk@diptorupd@antonwolfy