-
Notifications
You must be signed in to change notification settings - Fork 174
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
MAINT: utility module for Intel data parallel libs; import checks in one place #1936
base: main
Are you sure you want to change the base?
MAINT: utility module for Intel data parallel libs; import checks in one place #1936
Conversation
/intelci: run |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like a change of the name of "dppy", which I can only see in reference to dpctl's official/unofficial anaconda channel. Something which references data parallel intel or SYCL would be preferred.
def is_dpctl_available(targets=None): | ||
try: | ||
def is_dpctl_device_available(targets): | ||
if dpctl_available: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if dpctl_available check can be made an import-time check, rather than runtime.
rename the module for dp utilities update dpnp/dpctl checkers reusing daal4py sklearn_check_version
/intelci: run |
/intelci: run |
/intelci: run |
from daal4py.sklearn._utils import _package_check_version | ||
|
||
|
||
def is_dpctl_available(version=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These functions need caching just in case they will be used more extensively in future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does dpep
mean? I believe it is confusing name for helper file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://github.com/IntelPython/DPEP
https://intelpython.github.io/DPEP/main/
Do you want me provide links in the docs of the module or just rename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have provided small description in the top of the module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data_parallel_extensions_helper
/ data_parallel_ext_helper
would be better.
Description
These changes centralized data parallel libs checks, such as DPCtl and DPNP availability. (Also discussed on #1861 (comment))
Proposed changes:
is_dpctl_available
/is_dpnp_availble
tools for checking the specific dpctl, dpnp versionsis_dpctl_available
fromonedal.tests.utils._device_selection
module tois_dpctl_device_available
. This tool is used insklearnex
/onedal
tests where it is needed to check required device(s) availability viadpctl
.Non prior. Should be integrated after main is unfreeze.