Replace spla_sac_combine_entries raking scan with WarpScanSmem + BlockScanWarpScans under SPLA_HAS_SUBGROUPS

Đang mở
#311 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp
Lĩnh vực
performance

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
C++
Star
37
Fork
21
Merge trung bình
11 giờ 3 phút
Pull request đã merge (30 ngày)
13

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của SparseLinearAlgebra/spla

Tất cả issue của SparseLinearAlgebra/spla

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.