AMDGPU.jl
AMDGPU.jl copied to clipboard
Device printing is broken on Julia 1.11
function ker(x)
x[1] = pointer_from_objref(Int64)
return
end
Because pointer_from_objref is no longer const-prop'd.
- 1.10:
julia> @code_llvm pointer_from_objref(Int64)
; @ pointer.jl:267 within `pointer_from_objref`
define i64 @julia_pointer_from_objref_146() #0 {
top:
; @ pointer.jl:270 within `pointer_from_objref`
ret i64 139952382647648
}
- 1.11:
julia> @code_llvm pointer_from_objref(Int64)
; Function Signature: pointer_from_objref(Type{Int64})
; @ pointer.jl:300 within `pointer_from_objref`
define i64 @julia_pointer_from_objref_770() #0 {
top:
; @ pointer.jl:303 within `pointer_from_objref`
%0 = load {}*, {}** bitcast (i8* getelementptr (i8, i8* @jl_small_typeof, i64 256) to {}**), align 8
%coercion = ptrtoint {}* %0 to i64
ret i64 %coercion
}