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

SyclContext must have method to give list of devices #146

Closed
oleksandr-pavlyk opened this issue Oct 19, 2020 · 0 comments · Fixed by #277
Closed

SyclContext must have method to give list of devices #146

oleksandr-pavlyk opened this issue Oct 19, 2020 · 0 comments · Fixed by #277
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@oleksandr-pavlyk
Copy link
Collaborator

oleksandr-pavlyk commented Oct 19, 2020

ctx.get_sycl_devices() should give a list of SyclDevice objects associated with this context.

This is Python equivalent to cl::sycl::context::get_devices(). See table 4.14 in the provisional 2020 standard, here is an excerpt:

std::vector<device> get_devices() const Returns a std::vector containing all SYCLdevices that are associated with this SYCLcontext. The value returned must beequal to that returned by get_infoinfo::context::devices().

Moreover, there should be a way to query the Queue Manager for a queue that would be consistent with the given context.

@diptorupd diptorupd added this to the MS141 milestone Oct 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants