-
Notifications
You must be signed in to change notification settings - Fork 30
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
[LogisticRegression] Padding zeros to bypass the out-of-bound memory access of the raft stats (sum, mean, stddev) kernels #569
Conversation
…m cuda kernel Signed-off-by: Jinfeng <[email protected]>
build |
@@ -979,9 +979,33 @@ def _logistic_regression_fit( | |||
if self.getStandardization() is True and is_sparse is True: | |||
concated = concated.toarray() | |||
|
|||
num_pad_zero_cols = 0 | |||
if self.getStandardization() is True and concated.shape[1] % 32 != 0: | |||
num_pad_zero_cols = concated.shape[1] % 32 |
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.
Shouldn't the number of padding columns be 32 - concated.shape[1] % 32 ?
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.
Good catch!
build |
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.
Looks good. One more minor comment.
@@ -979,9 +979,35 @@ def _logistic_regression_fit( | |||
if self.getStandardization() is True and is_sparse is True: | |||
concated = concated.toarray() | |||
|
|||
num_pad_zero_cols = 0 |
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.
Maybe add a comment about why this is done and that it is temporary work around.
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.
Sounds good. Added a comment.
build |
build |
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.
👍
This PR is a workaround to bypass gpu memory out-of-bound access of raft 24.02.