Skip to content

to_power_type does not exist any more in Base #782

@nsajko

Description

@nsajko

The to_power_type function doesn't exist any more in Julia Base since PR JuliaLang/julia#58720. I suppose that will break loading of AMDGPU because of this block:

AMDGPU.jl/src/array.jl

Lines 305 to 311 in f8ce052

if VERSION v"1.12-"
# TODO is this OK to do this?
# Use type inference for x^p instead of `promote` which does `x * x`.
function Base.to_power_type(x::AnyROCArray)
convert(Base._return_type(*, Tuple{typeof(x), typeof(x)}), x)
end
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions