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

Chase down matmul allocation from mul_to! #12

Merged
merged 1 commit into from
Oct 17, 2019
Merged

Conversation

blegat
Copy link
Member

@blegat blegat commented Oct 17, 2019

No description provided.

mul_buffer = zero(zero(eltype(A)) * zero(eltype(B)))
for k = 1:mB
aoffs = (k-1)*Astride
mul_buffer = zero(promote_operation(*, eltype(A), eltype(B)))
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the change that removed the 140 bytes of allocation.

@blegat blegat merged commit 566dc79 into master Oct 17, 2019
for k = 1:mB
aoffs = (k-1)*Astride
mul_buffer = zero(promote_operation(*, eltype(A), eltype(B)))
@inbounds for k = Base.OneTo(mB)
Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, thanks for catching this

@blegat blegat deleted the bl/chase_matmul_alloc branch December 23, 2019 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants