Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

dppl check GPU and CPU devices#71

Merged
PokhodenkoSA merged 1 commit intoIntelPython:beta/2021IntelPython/numba:beta/2021from
PokhodenkoSA:fix/ciPokhodenkoSA/numba:fix/ciCopy head branch name to clipboard
Oct 9, 2020
Merged

dppl check GPU and CPU devices#71
PokhodenkoSA merged 1 commit intoIntelPython:beta/2021IntelPython/numba:beta/2021from
PokhodenkoSA:fix/ciPokhodenkoSA/numba:fix/ciCopy head branch name to clipboard

Conversation

@PokhodenkoSA
Copy link

No description provided.

@PokhodenkoSA PokhodenkoSA merged commit fc358e7 into IntelPython:beta/2021 Oct 9, 2020

try:
import dpctl
dppl_present = dpctl.has_gpu_queues() and dpctl.has_cpu_queues()

Choose a reason for hiding this comment

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

OR

Choose a reason for hiding this comment

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

Argh! Yes. You are right.

Copy link
Author

@PokhodenkoSA PokhodenkoSA Oct 9, 2020

Choose a reason for hiding this comment

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

I doubt numba.dppl works with CPU devices.
@reazulhoque Can it work when only CPU devices available?

Choose a reason for hiding this comment

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

The intent of the change is to make sure there is at least some OpenCL device (CPU or GPU) for Numba.dppl to use. We can also use dpctl.has_sycl_platforms() for this check.

Choose a reason for hiding this comment

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

@PokhodenkoSA it should work with any sycl device.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.