OpenCL mxm: align updateMinValue and updateMaxValue with GALATIC semantics

Aberta
#274 4 comentários 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
3-5 dias
Facilidade para iniciantes
25/100
Tipo de issue
Refatoração
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
cpp
Domínio
hpc

Direção de pesquisa

Start with the OpenCL helpers in mxm_helper_functions.cl (lines 45, 52, 90, 100 and 106-145) and the tests at test_opencl_mxm_helper_functions.cpp (lines 50-60 and 147), then compare against the GALATIC reference in HelperFunctions.cuh (lines 739-786). Run the helper tests first to get a baseline. Done means the warp size is the fixed 32 contract, the num parameter is an int with an (int)i < num check, and the tests pass. The accumulator memory question (shared versus __global) needs a maintainer decision before any wiring changes.

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

Descrição

task
  • WARP_SIZE: result is still correct (atomic_min/max is idempotent), but it breaks the agreed fixed-32 contract. Fix to internal MXM_WARP_SIZE 32. See mxm_helper_functions.cl:45,52,90,100, tests at test_opencl_mxm_helper_functions.cpp:50-60,147; GALATIC reference HelperFunctions.cuh:739-786.
  • num type: no live bug — GALATIC’s array overloads are unused; all 4 calls are scalar (acSpGEMM_SpGEMM.cuh:543-546). But uint -1 folds in all values instead of none. Use int num + (int)i < num. See HelperFunctions.cuh:740-747,774-781 vs mxm_helper_functions.cl:106-145.
  • Accumulator memory: GALATIC uses shared per block; SPLA uses __global*. Check before wiring into compute. See acSpGEMM_SpGEMM.cuh:543-552 vs mxm_helper_functions.cl:86-103.
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.