mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 16:49:02 +08:00
b9bd699e64
* Fix namespace clashing between cub and thrust::cub. Fix VS2022 error C3052: 'k': variable doesn't appear in a data-sharing clause under a default(none) clause * update version
21 lines
752 B
Diff
21 lines
752 B
Diff
diff --git a/common/src/fft/kiss_fft.c b/common/src/fft/kiss_fft.c
|
|
index a996887..37232bd 100644
|
|
--- a/common/src/fft/kiss_fft.c
|
|
+++ b/common/src/fft/kiss_fft.c
|
|
@@ -260,11 +260,13 @@ void kf_work(
|
|
#if (defined _OPENMP && (_OPENMP <= 201307)) || (defined __GNUC__ && (__GNUC__ >= 6 && __GNUC__ < 9))
|
|
#pragma omp parallel for \
|
|
default(none) \
|
|
- shared(f, factors, Fout, in_stride)
|
|
+ shared(f, factors, Fout, in_stride) \
|
|
+ private(k)
|
|
#else
|
|
#pragma omp parallel for \
|
|
default(none) \
|
|
- shared(f, factors, Fout, fstride, in_stride, m, p, st)
|
|
+ shared(f, factors, Fout, fstride, in_stride, m, p, st) \
|
|
+ private(k)
|
|
#endif
|
|
for (k=0;k<p;++k)
|
|
kf_work( Fout +k*m, f+ fstride*in_stride*k,fstride*p,in_stride,factors,st);
|