Skip to content

Implement KernelAbstractions.get_backend(::Memory{Float64}) #691

@FerreolS

Description

@FerreolS

Hi,
KernelAbstractions is really awesome to get things work fast on both CPU and GPU without bothering too much.
However, I'm missing a get_backend for Memory type.
I suppose it is just a matter of adding somewhere

get_backend(::Memory) = CPU()

I can even make a PR for that, am I missing something?

Actually, I need that for FixedSizeArrays where parent(::FixedSizeArray) return a Memory array. I can also propose an extension there but I believe it is better to consider the Memory case here.
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions