summaryrefslogtreecommitdiff
path: root/math/fftw3/files
diff options
context:
space:
mode:
Diffstat (limited to 'math/fftw3/files')
-rw-r--r--math/fftw3/files/extrapatch-tests_fftw-bench.c11
-rw-r--r--math/fftw3/files/patch-configure11
2 files changed, 22 insertions, 0 deletions
diff --git a/math/fftw3/files/extrapatch-tests_fftw-bench.c b/math/fftw3/files/extrapatch-tests_fftw-bench.c
new file mode 100644
index 000000000000..4fc77df82dfe
--- /dev/null
+++ b/math/fftw3/files/extrapatch-tests_fftw-bench.c
@@ -0,0 +1,11 @@
+Fix regression tests when OPENMP option is enabled.
+--- tests/fftw-bench.c.orig 2016-10-25 22:27:48 UTC
++++ tests/fftw-bench.c
+@@ -110,7 +110,6 @@ void rdwisdom(void)
+ if (threads_ok) {
+ BENCH_ASSERT(FFTW(init_threads)());
+ FFTW(plan_with_nthreads)(nthreads);
+- FFTW(make_planner_thread_safe)();
+ #ifdef _OPENMP
+ omp_set_num_threads(nthreads);
+ #endif
diff --git a/math/fftw3/files/patch-configure b/math/fftw3/files/patch-configure
new file mode 100644
index 000000000000..1bc428a294fc
--- /dev/null
+++ b/math/fftw3/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2016-07-30 20:34:50 UTC
++++ configure
+@@ -14397,7 +14397,7 @@ fi
+ esac
+
+ case "${ax_cv_c_compiler_vendor}" in
+- gnu|intel)
++ gnu|intel|clang)
+ # SSE/SSE2
+ if test "$have_sse2" = "yes" -a "x$SSE2_CFLAGS" = x; then
+ if test "$PRECISION" = d; then flag=msse2; else flag=msse; fi