Fix SORT_TYPE_MODE == 1 row bit-width clamp in compute_spgemm_part_sort_type_mode and csp_row_bits

Offen
#305 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
56/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
performance

Rechercherichtung

Start in src/opencl/cl_mxm_compute_spgemm_part.hpp and read compute_spgemm_part_sort_type_mode and csp_row_bits, tracing how the row bit width is calculated and where AROW_REFERENCE_TYPE storage size is enforced. Compare the behavior with GALATIC as described in the issue. Done when the local row bit width is used for sort mode selection while the 16-bit minimum remains only for storage, allowing eligible column counts to use 32-bit sort keys.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

task

Problem: compute_spgemm_part_sort_type_mode and csp_row_bits in src/opencl/cl_mxm_compute_spgemm_part.hpp artificially clamp SORT_TYPE_MODE == 1 encoded row bit-width to std::max(16u, csp_bit_width(block_size)) (16 bits instead of the actual ~8–9 bits needed for local row IDs), forcing matrices with cols >= 65536 to fall back to SORT_TYPE_MODE == 2 (64-bit ulong sort keys). Fix compute_spgemm_part_sort_type_mode and csp_row_bits to use the actual local row bit-width (keeping 16u only as the minimum storage size of AROW_REFERENCE_TYPE), matching GALATIC so cols up to 2^(32 - row_bits) stay on 32-bit SORT_TYPE_MODE == 1.

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.