Optimize assign_combine_blocks single-workgroup fast path, dummy reuse, and program caching

Đang mở
#303 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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
performance

Hướng nghiên cứu

Start by reading the referenced sections of cl_mxm_assign_combine_scan.hpp and cl_mxm_assign_combine_blocks.hpp, then trace assign_scan_run and the single-workgroup scan flow. Check existing tests for scan behavior and run the relevant test suite; done means single-workgroup inputs avoid the extra kernels and carry allocation, scans reuse a dummy buffer, and the program is cached without changing results.

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

Mô tả

task

Problem: assign_combine_blocks incurs heavy OpenCL overhead from multi-pass prescan/propagate kernels, temporary carry/dummy buffer allocations, and redundant program lookups even on single-workgroup inputs.

Fix: In cl_mxm_assign_combine_scan.hpp and cl_mxm_assign_combine_blocks.hpp, add a single-kernel fast path when groups == 1 (skipping carry allocation, prescan, and recursive assign_scan_inplace), reuse a single preallocated dummy buffer instead of calling assign_scan_dummy() per scan, and cache the CLProgram within assign_scan_run.

Refs: cl_mxm_assign_combine_scan.hpp:70-72, 142-213, 279-321; cl_mxm_assign_combine_blocks.hpp:133-179.

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.