Skip to content

Conversation

david-cortes-intel
Copy link
Contributor

Description

This PR:

  • Removes references and recommendations to use the soon-to-be-removed arrays from dpctl, replacing the suggestions for dpnp arrays instead.
  • Adds documentation pages for the config contexts in sklearnex.
  • Rewords lots of docs related to GPU support to be more clear and reflect the current behaviors of the library.

Checklist:

Completeness and readability

  • I have updated the documentation to reflect the changes or created a separate PR with updates and provided its number in the description, if necessary.
  • Git commit message contains an appropriate signed-off-by string (see CONTRIBUTING.md for details).
  • I have resolved any merge conflicts that might occur with the base branch.

Testing

  • I have run it locally and tested the changes extensively.
  • All CI jobs are green or I have provided justification why they aren't.

Copy link

codecov bot commented Oct 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Flag Coverage Δ
azure 80.37% <100.00%> (?)
github 73.03% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
sklearnex/_config.py 100.00% <100.00%> (ø)

... and 30 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@david-cortes-intel
Copy link
Contributor Author

Failing doc CI job appears to be a rate limiting issue with medium.com.

will be converted to CSR, which implies more than just data copying.
- Heterogeneous NumPy array
- If SYCL queue is provided for device without ``float64`` support but data are ``float64``, data are copied with reduced precision.
- If SyCL queue is provided for device without ``float64`` support but data are ``float64``, data are copied with reduced precision.
Copy link
Contributor

Choose a reason for hiding this comment

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

Its SYCL in all cases not in code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed.

from daal4py.sklearn._utils import sklearn_check_version
from onedal._config import _get_config as onedal_get_config

__all__ = ["get_config", "set_config", "config_context"]
Copy link
Contributor

Choose a reason for hiding this comment

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

why add __all__?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It defines more objects than these 3. Adding __all__ would avoid making them exportable for asterisk imports.


__all__ = ["get_config", "set_config", "config_context"]

tab = " " if (sys.version_info.major == 3 and sys.version_info.minor < 13) else ""
Copy link
Contributor

Choose a reason for hiding this comment

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

Whats up with the tabs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Python 3.13 changed how it deals with leading whitespace in docstrings.

Copy link
Contributor

Choose a reason for hiding this comment

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

Does that mean we need to do it throughout the repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This same workaround is already used in other places throughout the repository.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants