OpenCL mxm: fix MergeGeneralized scan_max local-memory sizing

Đang mở
#281 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
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá 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

The kernel's scan_max local-memory allocation for MergeGeneralized is sized from threads and input_elements_per_thread, while the wrapper injects WD_SCAN_MAX_SIZE=64. Start by finding where scan_max is declared in the OpenCL kernel source and where WD_SCAN_MAX_SIZE is defined, then reproduce with threads=8 and input_elements_per_thread=3. Done means the allocation covers WD_SCAN_MAX_SIZE, the generated header is regenerated, and a test with input=3 passes.

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

Mô tả

task

With threads=8, input_elements_per_thread=3: kernel allocates scan_max for 48 slots, but wrapper injects WD_SCAN_MAX_SIZE=64; WD scan writes slots 0..63 → local-memory overflow. input=1/2/4 are fine, so current input=2 tests miss it. Fix: size scan_max by WD_SCAN_MAX_SIZE and regenerate the generated header.

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.