Prevent stack corruption with parallelized use.

If the length of the data set for the transform is a prime, then the OpenMP parallelization results
in a recursion loop until the stack is corrupted or exhausted.
This resolves #1.
This commit is contained in:
wolfbeast
2019-08-07 21:25:01 -04:00
committed by Mark Borgerding
parent 3050076ab3
commit f4496dc080
+1 -1
View File
@@ -246,7 +246,7 @@ void kf_work(
#ifdef _OPENMP
// use openmp extensions at the
// top-level (not recursive)
if (fstride==1 && p<=5)
if (fstride==1 && p<=5 && m!=1)
{
int k;