OpenCL mxm: fix MergeGeneralized scan_max local-memory sizing

Aperta
#281 1 commento 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
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
performance

Direzione di ricerca

The kernel's scan_max local-memory allocation for MergeGeneralized is sized from threads and input_elements_per_thread, while the wrapper injects WD_SCAN_MAX_SIZE=64. Start by finding where scan_max is declared in the OpenCL kernel source and where WD_SCAN_MAX_SIZE is defined, then reproduce with threads=8 and input_elements_per_thread=3. Done means the allocation covers WD_SCAN_MAX_SIZE, the generated header is regenerated, and a test with input=3 passes.

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

Descrizione

task

With threads=8, input_elements_per_thread=3: kernel allocates scan_max for 48 slots, but wrapper injects WD_SCAN_MAX_SIZE=64; WD scan writes slots 0..63 → local-memory overflow. input=1/2/4 are fine, so current input=2 tests miss it. Fix: size scan_max by WD_SCAN_MAX_SIZE and regenerate the generated header.

Lingua principale
C++
Stelle
37
Fork
21
Merge medio
11h 3m
PR unite (30g)
13

Preparare l'ambiente

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 SparseLinearAlgebra/spla

Tutte le issue di SparseLinearAlgebra/spla

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.