Replace OpenCL block-level scans with CUB BlockScanWarpScans / BlockScanRaking

Offen
#306 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
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
25/100
Issue-Typ
Refactoring
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
backend, performance

Rechercherichtung

Start with block_scan.cl, block_radix_sort.cl, sort_and_combine_device.cl, and work_distribution.cl, then inspect CLAccelerator and CLProgramBuilder for cl_khr_subgroups detection. Compare the proposed subgroup scan and two-level raking fallback with the cited CUB specializations, including the OpenCL 1.2 path. Done means all named scans are replaced and wd_assign_prepare performs thread-local register prefix max so the block-wide scan covers only THREADS scalars.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

task

Replace SPLA's OpenCL block-level scans (spla_block_scan_* in block_scan.cl, the Hillis-Steele counter scan in block_radix_sort.cl, and the SacEntry scan in sort_and_combine_device.cl) with CUB's BlockScanWarpScans algorithm (cub/cub/block/specializations/block_scan_warp_scans.cuh) using cl_khr_subgroups (detected in CLAccelerator / CLProgramBuilder) with a 2-level raking fallback (cub/cub/block/specializations/block_scan_raking.cuh) for OpenCL 1.2, and perform thread-local register prefix max in wd_assign_prepare (work_distribution.cl) so block-wide scan runs only on THREADS scalars.

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.