-
Notifications
You must be signed in to change notification settings - Fork 549
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
Fix RF integer overflow #4563
Fix RF integer overflow #4563
Conversation
@vinaydes @venkywonka would be great if you can give a short review. |
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.
don't see any problemo. Thank you rory!
rerun tests |
@gpucibot merge |
Codecov Report
@@ Coverage Diff @@
## branch-22.04 #4563 +/- ##
===============================================
Coverage ? 85.73%
===============================================
Files ? 239
Lines ? 19585
Branches ? 0
===============================================
Hits ? 16792
Misses ? 2793
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
The following script results in an illegal memory access: ```python import cupy as cp from cuml.ensemble import RandomForestClassifier X = cp.random.random((1000000, 2500),dtype=cp.float32) assert(X.size > 2**31) y = cp.zeros(X.shape[0]) y[::2]=1.0 model = RandomForestClassifier() model.fit(X,y) pred = model.predict(X) ``` Fixed by some targeted casting of integers to 64 bit. See rapidsai#2459. Authors: - Rory Mitchell (https://github.com/RAMitchell) Approvers: - Venkat (https://github.com/venkywonka) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#4563
The following script results in an illegal memory access:
Fixed by some targeted casting of integers to 64 bit.
See #2459.