JuliaGPU / JuliaGPU/KernelAbstractions.jl

Implement `KernelAbstractions.get_backend(::Memory{Float64})`

Open Beginner friendly
#691 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
523
Forks
88
Avg merge
1d 11h
Merged PRs (30d)
25

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing get_backend methods in KernelAbstractions and compare how backend selection handles array-like types. Check the proposed Memory case against the FixedSizeArrays use case, where parent(::FixedSizeArray) returns Memory, and confirm that Memory is treated as CPU-backed storage without disrupting other methods.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
backend-api-design
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.