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

Use Some/Nothing instead of a sentinel for fzero #54469

Merged
merged 6 commits into from
May 16, 2024
Merged

Conversation

LilithHafner
Copy link
Member

Fixes #54467

@LilithHafner LilithHafner added domain:linear algebra Linear algebra domain:arrays:sparse Sparse arrays kind:bugfix This change fixes an existing bug labels May 14, 2024
@jishnub
Copy link
Contributor

jishnub commented May 15, 2024

Overall, this looks good to me, but the commit message should be a bit more informative.

@KristofferC
Copy link
Sponsor Member

Would be good with a quick spot check to see that performance is not impacted.

@LilithHafner
Copy link
Member Author

but the commit message should be a bit more informative.

Yes, I usually write those upon squash-merging. Perhaps

Use Some/nothing instead of a missing as sentinel for fzero to avoid bug that destroys sparsity when missing occurs in input

@LilithHafner
Copy link
Member Author

@nanosoldier runbenchmarks("broadcast")

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - successfully executed benchmarks. A full report can be found here.

@LilithHafner
Copy link
Member Author

@nanosoldier runbenchmarks("broadcast", vs=:master)

@LilithHafner
Copy link
Member Author

@nanosoldier runbenchmarks("broadcast", vs=":master")

@KristofferC
Copy link
Sponsor Member

KristofferC commented May 15, 2024

I don't know if the broadcast category in BaseBenchmarks contains anything using this code.

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here.

@LilithHafner
Copy link
Member Author

Do you have any reason to think this could impact performance?

@nanosoldier runbenchmarks(ALL, vs=":master")

@nanosoldier
Copy link
Collaborator

Your benchmark job has completed - possible performance regressions were detected. A full report can be found here.

@LilithHafner
Copy link
Member Author

Don't see any regressions from nanosoldier.

@LilithHafner
Copy link
Member Author

@b Diagonal(rand(3)) _ .+ _ also exercises this code path and does not regress.

@LilithHafner LilithHafner merged commit 0442b47 into master May 16, 2024
5 of 7 checks passed
@LilithHafner LilithHafner deleted the lh/fzero branch May 16, 2024 21:10
@KristofferC
Copy link
Sponsor Member

Do you have any reason to think this could impact performance?

The broadcast code is very inference sensitive and I've seen many small changes cause regressions due to e.g. something suddenly stop to inline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:arrays:sparse Sparse arrays domain:linear algebra Linear algebra kind:bugfix This change fixes an existing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Broadcast with missing destroys sparsity
4 participants