-
Notifications
You must be signed in to change notification settings - Fork 221
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
feature: rng primitive refactoring #2968
feature: rng primitive refactoring #2968
Conversation
/intelci: run |
cpp/daal/src/algorithms/engines/philox4x32x10/philox4x32x10_batch_container.h
Outdated
Show resolved
Hide resolved
cpp/daal/src/algorithms/engines/philox4x32x10/philox4x32x10_impl.i
Outdated
Show resolved
Hide resolved
/intelci: run |
/intelci: run |
/intelci: run |
sklearnex ref pr: uxlfoundation/scikit-learn-intelex#2228 |
Note that NumPy itself, which is used by scikit-learn, does not have such compatibility guarantees when using their Thus, I don't think it should be a big deal to make breaking changes in produced random numbers in sklearnex.
I'd expect it should actually be the opposite, since (a) we are seeding MT with a single integer instead of a sequence, which leaves it with issues for the first draws; (b)
On a deeper look, it seems all generators from MKL are 32-bit only, so please ignore earlier comment.
Philox is a counter-based generator, so parallelizing it and jumping states should be pretty straightforward, without needing to keep sub-engines. |
Let's leave the change in defaults for a different PR then. |
@Alexandr-Solovev Are the issues from the CI meant to be solved with the PR from the sklearnex side?
|
@david-cortes-intel Thanks for the comments!
I will be glad to change it, but based on the testing I temporary disabled one test, so, need to investigate, but overall lets do it.
For sure!
Yes, it should be fixed here uxlfoundation/scikit-learn-intelex#2228. I am waiting for combined CI results |
/intelci: run |
Looks like something went wrong in the examples:
|
Thanks for highlight it, will be fixed soon |
/intelci: run |
/intelci: run |
/intelci: run |
1 similar comment
/intelci: run |
/intelci: run |
1 similar comment
/intelci: run |
/intelci: run |
/intelci: run |
/intelci: run |
/intelci: run |
duplication of #3040 |
Description
Description:
Feature: RNG primitive refactoring
Summary:
This PR updates unifies API for oneDAL rng primitive functions. It includes various fixes and modifications for RNG primitive.
Key Changes:
New generators have been added:
HOST and Device engines have been refactored and added:
PR completeness and readability
Testing
Performance