-
Notifications
You must be signed in to change notification settings - Fork 179
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
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.
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.
moving out this boolean check doesn't give a lot, but moving out package import make sense. Going to move them out from primitives.
rename the module for dp utilities update dpnp/dpctl checkers reusing daal4py sklearn_check_version
/intelci: run |
/intelci: run |
/intelci: run |
/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.
Added ticket for use of this module in the future dev guidelines
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.
Great PR, I think its go to go, and is well written. Stylistically, I would swap "_dpep_helpers" for something like "_usm_array_api", "_usm_helpers", "_usm_utils", or something just for consistency/ if we add additional usm features later on that we want to centralize.
following uxlfoundation#1936
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.