JuliaSIMD / JuliaSIMD/StrideArraysCore.jl

Not always a `DenseArray`!!!

Open
#45 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
19
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Unfortunately, Julia Base has only limited use of traits.

`DenseArray` for opting into/out of BLAS/LAPACK is instead part of a type tree.

The fix (other than switching Base to a trait-based approach) is to define two separate type trees within `StrideArraysCore`, one for dense instances, and the other for non.

Currently, all subtype dense.
There is already a precendent for libraries doing this even when not valid for BLAS https://github.com/JuliaGPU/GPUArrays.jl/blob/6becb4fdfe213d327acab47225595ad9df785dfd/src/device/abstractarray.jl#L15
so probably not the end of the world to lie for now.

On the other hand, not lying has serious consequences https://github.com/JuliaSIMD/Polyester.jl/issues/127

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.