You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Julia v1.10-beta2 and --check-bounds=no, indexing into a PtrArray seems to be type unstable. When running the following MWE (mwe.jl),
using Pkg
Pkg.activate(; temp=true, io=devnull)
Pkg.add(name="StrideArrays", version="0.1.26", io=devnull)
using StrideArrays, InteractiveUtils
a = [1, 2, 3]
p =PtrArray(a)
@code_warntype p[1]
with julia-1.10 --check-bounds=no mwe.jl, we get the following output:
@ranocha made it a more minimum MWE and it turns out it is not related to StrideArrays.jl but rather Static.jl and Base.promote_type, so we reported a more focused example in JuliaLang/julia#50985.
With Julia v1.10-beta2 and
--check-bounds=no
, indexing into aPtrArray
seems to be type unstable. When running the following MWE (mwe.jl
),with
julia-1.10 --check-bounds=no mwe.jl
, we get the following output:This does not appear to happen with Julia v1.9 or without using
--check-bounds=no
:`julia-1.10 mwe.jl`
`julia-1.9 --check-bounds=no mwe.jl`
Unfortunately, this regression makes StrideArrays.jl currently unusably slow on Julia v1.10 with bounds checking disabled globally.
cc @ranocha
The text was updated successfully, but these errors were encountered: