1
0
mirror of https://github.com/paboyle/Grid.git synced 2026-06-05 03:34:36 +01:00

Merge branch 'develop' into feature/Kpipi-masaaki-offload

This commit is contained in:
Peter Boyle
2026-05-27 21:03:16 -04:00
6 changed files with 318 additions and 16 deletions
+5 -2
View File
@@ -35,8 +35,11 @@ static const char *hipfftResultString(hipfftResult r) {
}
}
// Plan creation + execution for (G, howmany) using hipfftCreate+hipfftMakePlanMany.
// This is the path Grid's FFT.h now uses.
// Plan creation + execution for (G, howmany).
// Tests two orderings to isolate whether a prior hipMalloc poisons hipfft
// plan creation for small G on ROCm 7:
// A) plan BEFORE hipMalloc — hypothesis: succeeds
// B) hipMalloc BEFORE plan — hypothesis: fails for G < 32
static void tryPlanAndExec(int G, long howmany) {
int n[] = {G};
long nelems = (long)G * howmany;