Skip to content

Conversation

JeffreySarnoff
Copy link
Member

No description provided.

Copy link

codecov bot commented Jun 20, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.74%. Comparing base (2ddcc84) to head (faad6d0).

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #106       +/-   ##
===========================================
- Coverage   96.95%   82.74%   -14.22%     
===========================================
  Files           3        2        -1     
  Lines         197      197               
===========================================
- Hits          191      163       -28     
- Misses          6       34       +28     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JuliaMath JuliaMath deleted a comment from JuliaRegistrator Jun 20, 2025
@JuliaMath JuliaMath deleted a comment from JuliaRegistrator Jun 20, 2025
src/bfloat16.jl Outdated
end
end

Base.fma(x::BFloat16, y::BFloat16, z::BFloat16) = BFloat16(fma(Float32(x), Float32(y), Float32(z)))
Copy link
Member

Choose a reason for hiding this comment

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

This looks very inefficient on hardware with native bf16 support.

Copy link
Member

Choose a reason for hiding this comment

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

Something like

ccall("llvm.fma.bf16", llvmcall, BFloat16, (BFloat16, BFloat16, BFloat16), x, y, z)

would be better (although this should probably be handled by julia's codegen directly)

Copy link
Member

Choose a reason for hiding this comment

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

why not just use llvmcall?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would be better --
I was not sure it worked correctly (at one time it did not).
I am making the change.

@giordano giordano linked an issue Jun 20, 2025 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fma not defined for BFloat16

4 participants