Skip to content

Const is broken #901

Description

@christiangnrd

const_arrayref calls unsafe_cached_load, which doesn't exist. We should probably fix this or just remove the code.

@inline function const_arrayref(A::MtlDeviceArray{T}, index::Integer) where {T}
@boundscheck checkbounds(A, index)
align = Base.datatype_alignment(T)
unsafe_cached_load(pointer(A), index, Val(align))
end

This is low priority since I don't think it's ever worked (KA's @const is not connected to this) but I opened the issue to keep track of it

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions