omlins / ParallelStencil.jl

Package for writing high-level code for parallel high-performance stencil computations that can be deployed on both GPUs and CPUs
BSD 3-Clause "New" or "Revised" License
301 stars 31 forks source link

Enable architecture agnostic creation of indices arrays with the allocator macros #137

Closed omlins closed 6 months ago

omlins commented 6 months ago

It is now possible to use Data.Index as eltype with all the architecture agnostic allocator macros, for example:

@zeros(2,3, eltype=Data.Index))

or

@rand(2,3, celldims=(3,4), eltype=Data.Index))