JuliaGPU / JuliaGPU/AMDGPU.jl

Default to `Int32` indices as much as possible

Open
#432 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Julia
Stars
344
Forks
79
Avg merge
2d 19h
Merged PRs (30d)
25

Description

Replacing Int64 indices with Int32 in the mapreduce kernel significantly reduces register usage:

  • before:
.sgpr_count:     84
.vgpr_count:     62
  • after:
.sgpr_count:     50
.vgpr_count:     51

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 in src/mapreduce.jl around the linked kernel and trace the index types used by the mapreduce implementation. Identify where Int64 indices can be replaced with Int32 without changing behavior, then inspect the generated kernel register counts to verify that the change reduces register usage as shown in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
performance
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.