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
* Prep for new release
Mostly moving static.jl to Static
* Fall back to Base.strides when define_strides(x) == false
* Took out reference to StaticInt
Documenting this is Static.jl's problem now
* Use Static comparison operators
* Use `defines_strides` to gate keep pointer assumptions
* DenseArray gets CPUPointer
* Add type stability check for axes_types(T, ::StaticInt)
* No recursion on device
Essentially equivalent to
```
function device(::Type{T}) where {T<:AbstractArray}
if parent_type(T) <: T
return T <: DenseArray ? CPUPointer() : CPUIndex()
else
if defines_strides(T)
return device(parent_type(T))
else
out = device(parent_type(T))
return out isa CPUPointer ? CPUIndex() : out
end
end
end
```
* Refix fall back to Base.strides
* Ensure that strides(::AbstractArray2) doesn't recurse
0 commit comments