Replace spla_sac_combine_entries raking scan with WarpScanSmem + BlockScanWarpScans under SPLA_HAS_SUBGROUPS

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

Rechercherichtung

Read src/opencl/kernels/sort_and_combine_device.cl and compare the existing raking scan with CUB's warp_scan_smem.cuh and block_scan_warp_scans.cuh. Implement the subgroup path using the named scratch fields and barriers, preserve the fallback, then regenerate src/opencl/generated/auto_*.hpp. Done means the subgroup path follows the requested scan structure and generated headers are updated.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

task

spla_sac_combine_entries in src/opencl/kernels/sort_and_combine_device.cl still uses a 2-level local-memory raking scan with a 32-step sequential loop on thread 0 and 3 workgroup barriers, even when SPLA_HAS_SUBGROUPS == 1. Under SPLA_HAS_SUBGROUPS == 1, replace it with a portable cl_khr_subgroups implementation (no vendor-specific extensions) following CUB's WarpScanSmem (cub/cub/warp/specializations/warp_scan_smem.cuh) + BlockScanWarpScans (cub/cub/block/specializations/block_scan_warp_scans.cuh): perform the intra-subgroup scan of SacEntry in scratch->scan.{states,indices,values} using sub_group_barrier(CLK_LOCAL_MEM_FENCE), publish subgroup aggregates to scratch->scan.part_* across a single workgroup barrier(CLK_LOCAL_MEM_FENCE), and compute subgroup prefixes/block aggregate in registers, keeping the existing raking path as the SPLA_HAS_SUBGROUPS == 0 fallback and regenerating src/opencl/generated/auto_*.hpp.

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.