Replace spla_sac_combine_entries raking scan with WarpScanSmem + BlockScanWarpScans under SPLA_HAS_SUBGROUPS

Ouverte
#311 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
5/5
Temps estimé
Plus d'une semaine
Accessibilité débutants
35/100
Type d'issue
Fonctionnalité
Clarté
Clairement spécifiée
Activité
Active
Stack technique
cpp
Domaine
performance

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

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.

Langage dominant
C++
Étoiles
37
Forks
21
Merge moyen
11 h 3 min
PR mergées (30 j)
13

Préparer son environnement

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de SparseLinearAlgebra/spla

Toutes les issues de SparseLinearAlgebra/spla

Issues similaires

Plus d'issues C++

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.