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

Device printing is broken on Julia 1.11 #551

Open
pxl-th opened this issue Nov 28, 2023 · 0 comments
Open

Device printing is broken on Julia 1.11 #551

pxl-th opened this issue Nov 28, 2023 · 0 comments

Comments

@pxl-th
Copy link
Member

pxl-th commented Nov 28, 2023

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
}
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

No branches or pull requests

1 participant