Optimize assign_combine_blocks single-workgroup fast path, dummy reuse, and program caching

Offen
#303 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
48/100
Issue-Typ
Refactoring
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
performance

Rechercherichtung

Start by reading the referenced sections of cl_mxm_assign_combine_scan.hpp and cl_mxm_assign_combine_blocks.hpp, then trace assign_scan_run and the single-workgroup scan flow. Check existing tests for scan behavior and run the relevant test suite; done means single-workgroup inputs avoid the extra kernels and carry allocation, scans reuse a dummy buffer, and the program is cached without changing results.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

task

Problem: assign_combine_blocks incurs heavy OpenCL overhead from multi-pass prescan/propagate kernels, temporary carry/dummy buffer allocations, and redundant program lookups even on single-workgroup inputs.

Fix: In cl_mxm_assign_combine_scan.hpp and cl_mxm_assign_combine_blocks.hpp, add a single-kernel fast path when groups == 1 (skipping carry allocation, prescan, and recursive assign_scan_inplace), reuse a single preallocated dummy buffer instead of calling assign_scan_dummy() per scan, and cache the CLProgram within assign_scan_run.

Refs: cl_mxm_assign_combine_scan.hpp:70-72, 142-213, 279-321; cl_mxm_assign_combine_blocks.hpp:133-179.

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.