[DFT][rocFFT] Add regression tests for stride validation and rank handling

Aperta
#771 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@zjin-lcf ci sta già lavorando.

Dal 30/9/2026.

  • #783 di @zjin-lcf — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
cpp
Ambito
backend, testing

Direzione di ricerca

Read the rocFFT validation changes in #760 and the existing rocFFT tests, including test_common.hpp; the issue does not name specific test files. Check how stride validation and rank-4 descriptors are exercised, then run the relevant tests, using ONEMATH_ENABLE_ROCFFT_BACKEND for backend integration coverage. Done means tests reject both invalid stride layouts, assert oneapi::math::unimplemented for rank 4, and fail if the #760 fixes are reverted.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Follow up on #760 by adding regression coverage for the rocFFT behavior changed there.

The tests added in #760 cover the separate test_common.hpp one-past-end fix, but do not exercise the rocFFT validation changes.

Add tests covering:

  • A stride layout that was previously accepted incorrectly and is now rejected.
  • A non-unit innermost stride requiring the stride multiplier during packed-layout validation.
  • A rank-4 descriptor being rejected with oneapi::math::unimplemented.

The tests should explicitly assert the expected commit result rather than treating unimplemented as a skipped compute test.

Since rocFFT is not currently available in CI, consider extracting the stride-validation logic into a hardware-independent helper so the first two cases can run in regular CI. Backend integration tests may remain gated on
ONEMATH_ENABLE_ROCFFT_BACKEND.

Acceptance criteria

  • Previously false-accepted stride configuration is rejected.
  • Invalid non-unit innermost stride configuration is rejected.
  • Rank-4 rocFFT descriptor throws oneapi::math::unimplemented.
  • Tests fail when the corresponding fixes from #760 are reverted.
Lingua principale
C++
Stelle
777
Fork
183
Merge medio
2g 16h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uxlfoundation/oneMath

Tutte le issue di uxlfoundation/oneMath

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.