Skip to content
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

Simplified the construction of zero scalar in GpuUnaryMinus #4482

Merged

Conversation

sperlingxx
Copy link
Collaborator

Signed-off-by: sperlingxx lovedreamf@gmail.com

Closes #2076

Signed-off-by: sperlingxx <lovedreamf@gmail.com>
@sperlingxx
Copy link
Collaborator Author

build

Copy link
Member

@jlowe jlowe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a dubious change, but I'm not going to block it. We're changing code that creates minimal garbage (only the necessary Scalar instance) and performs minimal checks to code that creates intermediate garbage (minimally a Decimal instance) along with a bunch of extra runtime-only dispatching type checks to determine what we already knew at the calling site. Given this isn't per-row it's not egregious.

@sameerz sameerz added the task Work required that improves the product but is not user facing label Jan 11, 2022
@sperlingxx
Copy link
Collaborator Author

build

@sperlingxx sperlingxx merged commit 0d89e41 into NVIDIA:branch-22.02 Jan 13, 2022
@sperlingxx sperlingxx deleted the simpler_decimal_scalar_construction branch January 13, 2022 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
task Work required that improves the product but is not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make creation of a Scalar decimal value simpler
3 participants