-
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
Segfault using Julia 1.11-alpha2 on AMD EPYC 9554 #68
Comments
julia> a = one(BFloat16)
BFloat16(1.0)
julia> @code_lowered a+a
CodeInfo(
1 ─ %1 = BFloat16s.Float32(x)
│ %2 = BFloat16s.Float32(y)
│ %3 = %1 + %2
│ %4 = BFloat16s.BFloat16(%3)
└── return %4
) I also have an Intel i5 on my macbook and with Julia 1.10.2 I cannot reproduce your error, even if I execute this a million times julia> using BFloat16s
julia> A = ones(BFloat16,10)
julia> for _ in 1:1000000
A + A
end
julia> Are you sure that |
Yes, I am. I was also testing v0.4.2, hence the
Starting with Julia 1.11 (JuliaLang/julia@5487046) and BFloat16s 0.5 (#51), native LLVM
|
But what happens if you look at the LLVM code? Because for me the same conversion happens there (wtih 1.11) but you're hoping it would call julia> @code_llvm a+a
; Function Signature: +(Core.BFloat16, Core.BFloat16)
; @ /Users/milan/.julia/packages/BFloat16s/u3WQc/src/bfloat16.jl:225 within `+`
define bfloat @"julia_+_5925"(bfloat %"x::BFloat16", bfloat %"y::BFloat16") #0 {
top:
%0 = fpext bfloat %"x::BFloat16" to float
%1 = fpext bfloat %"y::BFloat16" to float
%2 = fadd float %0, %1
%3 = fptrunc float %2 to bfloat
ret bfloat %3
} |
Yes, I was hoping for Interestingly, I can't even generate the LLVM IR for
Sometimes I even get one core sitting at 100% load just generating the LLVM IR. I am a bit clueless here. |
The problem persists on the current nightly, Version 1.12.0-DEV.629 (2024-05-30). |
Works for me on AMD EPYC 9654: JuliaLang/julia#54025 (comment) |
Please reopen if still broken. |
Running
sometimes leads to a segfault, sometimes a stack overflow, and sometimes one CPU sits at 100% until
^C
ed.Nothing breaks on my Intel Core i5-12600K that does not support
avx512_bf16
.Manifest-v1.11.toml
The text was updated successfully, but these errors were encountered: