Skip to content

Allow creating a SyclQueue from an exisiting SyclDevice (possibly sub-device) or SyclContext #266

Closed

Description

@diptorupd

Ability to create SyclQueue from instance of SyclDevice (and possibly SyclContext), which can be a sub-device.

Example:

import dpctl
with dpctl.on_device('gpu:1') as dev:
     X = dpnp.ones(10)  # kernels submitted to q associated with device `dev` and its default context
import dpctl
q = dpctl.SyclQueue(device="opencl:gpu:0")
dpctl.set_current_queue()
import dpctl
dev_parent = dpctl.SyclDevice("opencl:cpu:0")
subdevices = dev.parent.create_sub_devices([6, 6])
dpctl.set_current_queue(dpctl.SyclQeueue( subdevices[0]))

Activity

  1. self-assigned this
    on Jan 31, 2021
  2. diptorupd commented on Apr 15, 2021

    @diptorupd
    ContributorAuthor

    Implemented and will be part of 0.7.0.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions