JuliaGPU / JuliaGPU/KernelAbstractions.jl

`get_backend` support for `MVector`

Open
#620 5 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

This fails right now:

julia> using KernelAbstractions, StaticArrays

julia> get_backend(MVector(1,2,3))
ERROR: ArgumentError: Implement `KernelAbstractions.get_backend(::MVector{3, Int64})`
Stacktrace:
 [1] get_backend(A::MVector{3, Int64})
   @ KernelAbstractions ~/.julia/packages/KernelAbstractions/C3nYQ/src/KernelAbstractions.jl:522
 [2] top-level scope
   @ REPL[6]:1

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 at src/KernelAbstractions.jl:522 and inspect the get_backend entry point and its handling of array-like arguments. Reproduce the MVector example from the issue, then verify that get_backend(MVector(1,2,3)) succeeds without the current ArgumentError.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.