JuliaArrays / ShiftedArrays.jl

Lazy shifted arrays for data analysis in Julia
Other
50 stars 10 forks source link

Added support for CuArray via Adapt.jl #67

Open RainerHeintzmann opened 9 months ago

RainerHeintzmann commented 9 months ago

This second attempt, uses a very light-weight implementation to add CuArray support to ShiftedArrays.jl. It is based on using an Extension Package, such that ShiftedArrays does not drag in any extra packages, but if CUDA.jl is present, the adaptation is used. Note that the show() function was specified by CuArrays preventing errors via the @allowscalar macro. The tests were extended to CuArray usage, but this has to be enabled manually in the runtests.jl file.

piever commented 8 months ago

Thanks for the PR, I've left a review with some suggestions. I'll be traveling for the holidays so I might be slow in responding for the next couple of weeks.

RainerHeintzmann commented 8 months ago

... there were a couple of typos. Now the show adaptation is commented out and the typos were fixed. The tests run fine. Seems we are getting closer.