leios / Fable.jl

General purpose animations via iterated function systems

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove AMDGPU and CUDA as direct dependencies

leios opened this issue · comments

If we update to the latest version of KernelAbstractions, we should be able to remove CUDA, AMDGPU, ROCKernels, and CUDAKernels and instead use the KernelAbstractions get_backend(...) function, as in https://github.com/JuliaGPU/KernelAbstractions.jl/blob/main/examples/histogram.jl#L62

Note that this requires a slight rework of the layer.params.ArrayType interface as well because get_backend requires an actual array instead of an array type. Maybe just dispatch off of layer.canvas