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

Base.HWReal on Apple silicon #50804

Closed
ctkelley opened this issue Aug 5, 2023 · 4 comments · Fixed by #55929
Closed

Base.HWReal on Apple silicon #50804

ctkelley opened this issue Aug 5, 2023 · 4 comments · Fixed by #55929
Labels
float16 system:apple silicon Affects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chips

Comments

@ctkelley
Copy link

ctkelley commented Aug 5, 2023

Why is Float16 missing from Base.HWReal on Apple silicon? On my M2 Pro, Julia 1.10 I get

julia> Base.HWReal
Union{Float32, Float64, Int16, Int32, Int64, Int8, UInt16, UInt32, UInt64, UInt8}
@vchuravy
Copy link
Member

vchuravy commented Aug 5, 2023

There is a bit of a challenge here. HWReal is per architecture, and Float16 is per micro-architecture.

x-ref: #46499 #43327 #40216

@ctkelley
Copy link
Author

ctkelley commented Aug 5, 2023

OK. Some useful packages query Base.HWReal. LoopVecrtorization.jl is one example.

@brenhinkeller brenhinkeller added the system:apple silicon Affects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chips label Aug 5, 2023
@vchuravy
Copy link
Member

vchuravy commented Aug 6, 2023

Yeah we would need to have a has_float16 predicate like has_fma

@giordano
Copy link
Contributor

giordano commented Nov 1, 2024

Fixed by #55929.

@giordano giordano closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
float16 system:apple silicon Affects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chips
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants