OpenCL mxm: align updateMinValue and updateMaxValue with GALATIC semantics

Offen
#274 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
25/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
hpc

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.
Vorherrschende Sprache
C++
Sterne
37
Forks
21
Ø Merge
11 Std. 3 Min.
Gemergte PRs (30 T.)
13

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus SparseLinearAlgebra/spla

Alle Issues in SparseLinearAlgebra/spla

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.