GPUifyLoops.jl icon indicating copy to clipboard operation
GPUifyLoops.jl copied to clipboard

Change `Device` to `Backend` or something similar ?

Open mwarusz opened this issue 5 years ago • 0 comments

The motivation is that there could be different backends for the same device, e.g. a single threaded and multithreaded backend for CPUs. The current usage of Device looks to me like it is really an abstraction for backend. Ideally, those concepts should be separated. Moreover, currently it is true that

julia> CPU <: Device
true
julia> GPUifyLoops.isdevice(CPU())
false

which does not seem great.

mwarusz avatar Jun 10 '19 19:06 mwarusz