Optimize spla_mxm_compute_spgemm_part_kernel local memory, barriers, and atomics

Đang mở
#307 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
performance

Hướng nghiên cứu

Read src/opencl/kernels/mxm_compute_spgemm_part.cl and src/opencl/cl_mxm_compute_spgemm_part.hpp, then inspect generate.py and the generated auto_mxm_compute_spgemm_part.hpp. Trace the kernel’s chunk row/count boundaries, especially emit_start + num - 1, before changing its memory use, synchronization, and atomics. Done means the requested optimizations are implemented, the generated header is refreshed, and the exact boundary semantics are preserved.

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

Mô tả

task

Refactor spla_mxm_compute_spgemm_part_kernel in src/opencl/kernels/mxm_compute_spgemm_part.cl, fix compute_spgemm_part_local_memory_bytes in src/opencl/cl_mxm_compute_spgemm_part.hpp, and regenerate auto_mxm_compute_spgemm_part.hpp via generate.py while preserving spla's exact chunk row/count boundary semantics (emit_start + num - 1): (1) remove CspTempMem::emit 5 staged_* arrays (break_positions, scan, staged_row_ids/col_ids/values/counts/row_ends) and write directly from register entries[i] to comb.current streaming chunks in CSP_TEMP_ITEMS_PER_BLOCK batches, and fix current_row_slots in cl_mxm_compute_spgemm_part.hpp to use threads * retain_elements_per_thread; (2) skip direct_scan/nondirect_scan + temp.setup.compact when direct_chunk_rows == 0; (3) use subgroup reductions instead of 4x per-thread local atomic_min/atomic_max and atomic_or for split_mode; (4) replace CSP_CONSUME_WORK local atomic_add + barrier with thread-0 update, replace csp_emit_chunk_range thread-0 linear scans for first_count/last_count, guard atomic_or(run_flags, status_mask) on status_mask != 0, and remove redundant init barriers (L516, L745-751).

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.