Prune redundant workgroup barriers, eliminate integer division in LM_ADDR, and streamline computeSpGemmPart

Offen
#297 1 Kommentar 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
45/100
Issue-Typ
Refactoring
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
backend, performance

Rechercherichtung

Read mxm_compute_spgemm_part.cl around lines 802–876 and trace the barriers through the surrounding while-loop. Then inspect spla/src/opencl/kernels/common_def.cl and relevant headers for LM_ADDR; review the affected kernels and tests for synchronization and address-calculation behavior. Done means redundant barriers are removed, LM_ADDR uses the specified shift, and relevant tests pass.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

task

Now you need to prune redundant workgroup barriers, eliminate integer division in local memory padding, and streamline hot-loop execution in computeSpGemmPart. e.g. mxm_compute_spgemm_part.cl:
• Lines 802–810: Back-to-back barriers around thread 0 bit-width calculation (key_col_bits, key_row_bits).
• Lines 832, 843, 860, 876: Clustered barriers during row-count staging and chunk boundary decisions.
• Audit remaining barriers across the while-loop to eliminate redundant synchronization points.
• spla/src/opencl/kernels/common_def.cl (and relevant headers):
• Macro LM_ADDR(address): replace integer division / LM_NUM_MEM_BANKS with bit shift >> 5u.

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.