OpenCL mxm: fix MergeGeneralized scan_max local-memory sizing

Aberta
#281 1 comentário 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
35/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp
Domínio
performance

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.

Linguagem predominante
C++
Estrelas
37
Forks
21
Merge médio
11h 3min
PRs com merge (30d)
13

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de SparseLinearAlgebra/spla

Todas as issues de SparseLinearAlgebra/spla

Issues semelhantes

Mais issues de C++

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.