-
Notifications
You must be signed in to change notification settings - Fork 17
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
Segmentation fault when converting BFloat16 to Float32 #89
Comments
Cannot be reproduced on Win11 and WSL. DetailsWin11 julia> using BFloat16s
julia> x = BFloat16[0]
1-element Vector{BFloat16}:
0.0
julia> Float32.(x)
1-element Vector{Float32}:
0.0
julia> versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af (2024-12-01 20:02 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900HX
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 32 virtual cores) WSL (Ubuntu 22.04.5 LTS) julia> using BFloat16s
julia> x = BFloat16[0]
1-element Vector{BFloat16}:
0.0
julia> Float32.(x)
1-element Vector{Float32}:
0.0
julia> versioninfo()
Julia Version 1.11.2
Commit 5e9a32e7af2 (2024-12-01 20:02 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900HX
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 32 virtual cores) Lines 210 to 223 in c468ba4
Does the following code trigger the problem and what is your output? Float32(x[1])
BFloat16s.llvm_arithmetic
Base.fpext.(Float32, x)
@. reinterpret(Float32, UInt32(reinterpret(UInt16, x)) << 16)
|
This only occurs on my Linux server. On my local mac environment, it works fine. Should we create an issue under the Julia repo? |
The text was updated successfully, but these errors were encountered: