Replace OpenCL block-level scans with CUB BlockScanWarpScans / BlockScanRaking

Đang mở
#306 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
25/100
Loại issue
Tái cấu trúc
Độ 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
backend, performance

Hướng nghiên cứu

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.

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

Mô tả

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.

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.