`ConcurrentWrites` predicates not using grid-stride

Aperta
#156 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
julia
Ambito
performance

Direzione di ricerca

Start by locating the ConcurrentWrites predicates and the large Metal tests mentioned in the issue; compare their launch behavior with algorithms that already use grid-stride processing. The issue gives an all(==(0), A) reproducer using a Metal array near the UInt32 element limit. Done when these predicates handle arrays beyond the grid-size limit on affected backends and the large-array case passes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

This limits arrays to a max of 2^32-1 elements on backends that have a grid-size limit like ROCM and Metal. Found because the large Metal tests were failing locally (they use too much ram for the CI runners)

MWE on a metal main branch:

using Metal
const AK = Metal.GPUArrays.AK
n = Int(typemax(UInt32)) - 2
A = MtlArray{Int8}(undef, n)
Metal.unsafe_fill!(device(A), pointer(A), Int8(0), n; async=false)
all(==(0), A)   # also AK.all(==(0), A)

There are a few more algorithms that don't do grid-stride but some of these process multiple elements per work-item so the limit is pushed back even more.

Lingua principale
Julia
Stelle
204
Fork
20
Merge medio
2g 19h
PR unite (30g)
41

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di JuliaGPU/AcceleratedKernels.jl

Tutte le issue di JuliaGPU/AcceleratedKernels.jl

Issue simili

Altre issue su Julia

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.