JuliaGPU / JuliaGPU/KernelAbstractions.jl

Offsetting kernel indices

Open
#384 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

It'd be extremely useful to have a feature for offsetting the kernel index, either at launch time or setup time.

Not sure what the best design or interface would be. @simone-silvestri and I discussed possibly embellishing StaticSize:

https://github.com/JuliaGPU/KernelAbstractions.jl/blob/4128c3db26f4b9fef59d9589655ea96c35ea2db1/src/nditeration.jl#L14-L17

Our work exclusively uses statically sized kernels so I think we'd prefer a way to specify the offsets statically; eg the size and offset are simultaneously determined.

But another possibility would be to accept offsets as a kwarg similar to how ndrange is accepted for DynamicSize?

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 with src/nditeration.jl around StaticSize, as linked in the issue, and trace how kernel indices and ndrange are handled for statically sized and dynamic kernels. The issue leaves the interface undecided; done would require an agreed design that supports the requested static offsets and clarifies whether launch-time or setup-time offsets are supported.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
hpc
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.