Skip to content
This repository was archived by the owner on Jan 25, 2023. It is now read-only.

Conversation

PokhodenkoSA
Copy link

@PokhodenkoSA PokhodenkoSA commented Nov 9, 2020

dppl_config.py contains flag dppl_present which indicate that dpCtl
and devices are available.
As numba-dppy will depend on dpCtl then the check is not necessary.
Also checking for available platform and device could be done in
numba-dppy. It also can raise and exception on import as before.

Closes #118

@PokhodenkoSA PokhodenkoSA mentioned this pull request Nov 9, 2020
50 tasks
@PokhodenkoSA
Copy link
Author

PokhodenkoSA commented Nov 10, 2020

Conclusion:

  • code could be removed
  • we need to design and think about use cases when devices are not available

/CC @diptorupd

Note: This place introduces optional dependency `numba` -> `numba_dppy`.
Right dependency order is `numba` <- `numba_dppy`.

`numba_dppy` is required because of implementation of `with context`
requires TargetDispatcher.
dppl_config.py contains flag `dppl_present` which indicate that `dpCtl`
and devices are available.
As `numba-dppy` will depend on `dpCtl` then the check is not necessary.
Also checking for available platform and device could be done in
`numba-dppy`. It also can raise and exception on import as before.

`dppl_present` also renamed to `dppy_present`.
@PokhodenkoSA PokhodenkoSA merged commit 945bc46 into IntelPython:pydppl Nov 18, 2020
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.

1 participant