commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 05/14: fft: android: problems with wisdom f


From: git
Subject: [Commit-gnuradio] [gnuradio] 05/14: fft: android: problems with wisdom files and MEASURE version of FFTW. Defaulting to suboptimal ESTIMATE until we figure it out.
Date: Thu, 12 Mar 2015 19:38:13 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch android
in repository gnuradio.

commit c885166e8f7269ae4351e3706d5eca1440069616
Author: Tom Rondeau <address@hidden>
Date:   Sun Dec 21 09:47:24 2014 -0500

    fft: android: problems with wisdom files and MEASURE version of FFTW. 
Defaulting to suboptimal ESTIMATE until we figure it out.
---
 gr-fft/lib/fft.cc | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/gr-fft/lib/fft.cc b/gr-fft/lib/fft.cc
index 18e54f0..13ef12a 100644
--- a/gr-fft/lib/fft.cc
+++ b/gr-fft/lib/fft.cc
@@ -159,20 +159,21 @@ namespace gr {
       }
 
       d_nthreads = nthreads;
-      config_threading(nthreads);
-      import_wisdom(); // load prior wisdom from disk
+      //config_threading(nthreads);
+      //import_wisdom();       // load prior wisdom from disk
 
       d_plan = fftwf_plan_dft_1d (fft_size,
                                  reinterpret_cast<fftwf_complex *>(d_inbuf),
                                  reinterpret_cast<fftwf_complex *>(d_outbuf),
                                  forward ? FFTW_FORWARD : FFTW_BACKWARD,
-                                 FFTW_MEASURE);
+                                  FFTW_ESTIMATE);
+                                 //FFTW_MEASURE);
 
       if (d_plan == NULL) {
        fprintf(stderr, "gr::fft: error creating plan\n");
        throw std::runtime_error ("fftwf_plan_dft_1d failed");
       }
-      export_wisdom(); // store new wisdom to disk
+      //export_wisdom();       // store new wisdom to disk
     }
 
     fft_complex::~fft_complex()
@@ -233,7 +234,8 @@ namespace gr {
       d_plan = fftwf_plan_dft_r2c_1d (fft_size,
                                      d_inbuf,
                                      reinterpret_cast<fftwf_complex 
*>(d_outbuf),
-                                     FFTW_MEASURE);
+                                     FFTW_ESTIMATE);
+                                      //FFTW_MEASURE);
 
       if (d_plan == NULL) {
        fprintf(stderr, "gr::fft::fft_real_fwd: error creating plan\n");
@@ -303,7 +305,8 @@ namespace gr {
       d_plan = fftwf_plan_dft_c2r_1d (fft_size,
                                      reinterpret_cast<fftwf_complex 
*>(d_inbuf),
                                      d_outbuf,
-                                     FFTW_MEASURE);
+                                      FFTW_ESTIMATE);
+                                      //FFTW_MEASURE);
 
       if (d_plan == NULL) {
        fprintf(stderr, "gr::fft::fft_real_rev: error creating plan\n");



reply via email to

[Prev in Thread] Current Thread [Next in Thread]