-
Notifications
You must be signed in to change notification settings - Fork 514
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 unnecessary f32/f64 conversions in t-SNE KL calc #4331
Conversation
The old code compiles to cvt.f64.f32 %fd1, %f1; add.f64 %fd2, %fd1, 0d3FF0000000000000; mul.f64 %fd3, %fd2, 0d3FE0000000000000; cvt.rn.f32.f64 %f2, %fd3; instead of just add.f32 %f2, %f1, 0f3F800000; mul.f32 %f3, %f2, 0f3F000000;
Can one of the admins verify this patch? |
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.
Thanks for the fix @zbjornson ! The CI issue will be solved in #4333 so will merge your PR just after that is in
ok to test |
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-21.12 #4331 +/- ##
===============================================
Coverage ? 86.05%
===============================================
Files ? 231
Lines ? 18778
Branches ? 0
===============================================
Hits ? 16159
Misses ? 2619
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@gpucibot merge |
The old code compiles to ```asm cvt.f64.f32 %fd1, %f1; add.f64 %fd2, %fd1, 0d3FF0000000000000; mul.f64 %fd3, %fd2, 0d3FE0000000000000; cvt.rn.f32.f64 %f2, %fd3; ``` instead of just ```asm add.f32 %f2, %f1, 0f3F800000; mul.f32 %f3, %f2, 0f3F000000; ``` Authors: - Zach Bjornson (https://github.com/zbjornson) Approvers: - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#4331
The old code compiles to
instead of just