-
Notifications
You must be signed in to change notification settings - Fork 546
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 minor ASAN issues in UMAPAlgo::Optimize::find_params_ab() #4405
fix minor ASAN issues in UMAPAlgo::Optimize::find_params_ab() #4405
Conversation
Can one of the admins verify this patch? |
Signed-off-by: Yitao Li <[email protected]>
499bb3b
to
3106f80
Compare
ok to test |
1 similar comment
ok to test |
Signed-off-by: Yitao Li <[email protected]>
rerun tests |
2 similar comments
rerun tests |
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-22.02 #4405 +/- ##
===============================================
Coverage ? 85.83%
===============================================
Files ? 236
Lines ? 19410
Branches ? 0
===============================================
Hits ? 16660
Misses ? 2750
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
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.
👍
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.
LGTM. Thanks for the contribution!
@gpucibot merge |
…ai#4405) There were actuall 2 minor issues that prevented `UMAPAlgo::Optimize::find_params_ab()` from being ASAN-clean at the moment: - One is the mem leaks, of course - Another one is the `malloc()`-`delete` mismatch -- only memory allocated using `new` or equivalent should be freed with operator `delete` or `delete[]` Another issue that was also addressed here: exception safety (i.e., by using `make_unique` from C++-14) Signed-off-by: Yitao Li <[email protected]> Authors: - Yitao Li (https://github.com/yitao-li) Approvers: - Zach Bjornson (https://github.com/zbjornson) - Corey J. Nolet (https://github.com/cjnolet) URL: rapidsai#4405
There were actuall 2 minor issues that prevented
UMAPAlgo::Optimize::find_params_ab()
from being ASAN-clean at the moment:malloc()
-delete
mismatch -- only memory allocated usingnew
or equivalent should be freed with operatordelete
ordelete[]
Another issue that was also addressed here: exception safety (i.e., by using
make_unique
from C++-14)Signed-off-by: Yitao Li [email protected]