OpenCL mxm: align updateMinValue and updateMaxValue with GALATIC semantics

Aperta
#274 4 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
25/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
hpc

Direzione di ricerca

Start with the OpenCL helpers in mxm_helper_functions.cl (lines 45, 52, 90, 100 and 106-145) and the tests at test_opencl_mxm_helper_functions.cpp (lines 50-60 and 147), then compare against the GALATIC reference in HelperFunctions.cuh (lines 739-786). Run the helper tests first to get a baseline. Done means the warp size is the fixed 32 contract, the num parameter is an int with an (int)i < num check, and the tests pass. The accumulator memory question (shared versus __global) needs a maintainer decision before any wiring changes.

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

Descrizione

task
  • WARP_SIZE: result is still correct (atomic_min/max is idempotent), but it breaks the agreed fixed-32 contract. Fix to internal MXM_WARP_SIZE 32. See mxm_helper_functions.cl:45,52,90,100, tests at test_opencl_mxm_helper_functions.cpp:50-60,147; GALATIC reference HelperFunctions.cuh:739-786.
  • num type: no live bug — GALATIC’s array overloads are unused; all 4 calls are scalar (acSpGEMM_SpGEMM.cuh:543-546). But uint -1 folds in all values instead of none. Use int num + (int)i < num. See HelperFunctions.cuh:740-747,774-781 vs mxm_helper_functions.cl:106-145.
  • Accumulator memory: GALATIC uses shared per block; SPLA uses __global*. Check before wiring into compute. See acSpGEMM_SpGEMM.cuh:543-552 vs mxm_helper_functions.cl:86-103.
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.