A few backends have the option to create arrays using unified memory. Using unified memory for certain algorithms can have significant (positive) impact on performance by removing the need for @allowscalar. See the Metal.jl private array findall benchmarks.
I think it would be nice to have a way for backends to indicate whether they support unified memory or not so KA kernels can use this.
A few backends have the option to create arrays using unified memory. Using unified memory for certain algorithms can have significant (positive) impact on performance by removing the need for
@allowscalar. See the Metal.jl private array findall benchmarks.I think it would be nice to have a way for backends to indicate whether they support unified memory or not so KA kernels can use this.