Skip to content

oneVector broken on Julia 1.12.0-rc1 #524

@MagicMuscleMan

Description

@MagicMuscleMan
julia> using oneAPI

julia> Float32[1, 2] |> oneVector
ERROR: TypeError: in add_ptr, expected Ptr, got a value of type UInt64
Stacktrace:
  [1] +
    @ ~/.julia/packages/oneAPI/0D9eD/lib/level-zero/pointer.jl:74 [inlined]
  [2] unsafe_convert
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:275 [inlined]
  [3] #pointer#25
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:220 [inlined]
  [4] pointer
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:212 [inlined]
  [5] unsafe_copyto!(ctx::oneAPI.oneL0.ZeContext, dev::oneAPI.oneL0.ZeDevice, dest::oneArray{…}, doffs::Int64, src::Vector{…}, soffs::Int64, n::Int64)
    @ oneAPI ~/.julia/packages/oneAPI/0D9eD/src/array.jl:339
  [6] copyto!(dest::oneArray{Float32, 1, oneAPI.oneL0.DeviceBuffer}, doffs::Int64, src::Vector{Float32}, soffs::Int64, n::Int64)
    @ oneAPI ~/.julia/packages/oneAPI/0D9eD/src/array.jl:301
  [7] copyto!
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:305 [inlined]
  [8] oneArray
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:234 [inlined]
  [9] oneArray
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:238 [inlined]
 [10] oneArray
    @ ~/.julia/packages/oneAPI/0D9eD/src/array.jl:246 [inlined]
 [11] |>(x::Vector{Float32}, f::Type{oneArray{T, 1} where T})
    @ Base ./operators.jl:972
 [12] top-level scope
    @ REPL[2]:1
Some type information was truncated. Use `show(err)` to see complete types.

The same works in Julia 1.11.

Used device:

julia> oneAPI.devices()[1]
ZeDevice(GPU, vendor 0x8086, device 0x4680): Intel(R) UHD Graphics 770

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions