Loading fourier_transform.c +25 −8 Original line number Diff line number Diff line Loading @@ -2,9 +2,14 @@ #include "allvars.h" #include "proto.h" void fftw_data(){ #if defined(USE_FFTW) && !defined(CUFFTMP) // ------------------------------------ #if defined(USE_FFTW) && !defined(CUFFTMP) // PERFORM FFT on CPU with FFTW // ------------------------------------ void fftw_data ( void ) { // FFT transform the data (using distributed FFTW) if(rank == 0)printf("PERFORMING FFT\n"); Loading Loading @@ -81,9 +86,18 @@ void fftw_data(){ timing_wt.fftw += CPU_TIME_wt - start; #endif return; } // ------------------------------------ #else // PERFORM FFT ON GPU USING CUFFTMP // ------------------------------------ void fftw_data ( void ) { // FFT transform the data (using distributed FFTW) if(rank == 0)printf("PERFORMING FFT\n"); #if defined(USE_FFTW) && defined(CUFFTMP) // FFT transform the data using cuFFT if(rank==0)printf("PERFORMING CUDA FFT\n"); Loading @@ -105,10 +119,13 @@ void fftw_data(){ timing_wt.cufftmp += CPU_TIME_wt - start; #endif return; } #endif // END OF FFT SELECTION } void write_fftw_data(){ Loading Loading
fourier_transform.c +25 −8 Original line number Diff line number Diff line Loading @@ -2,9 +2,14 @@ #include "allvars.h" #include "proto.h" void fftw_data(){ #if defined(USE_FFTW) && !defined(CUFFTMP) // ------------------------------------ #if defined(USE_FFTW) && !defined(CUFFTMP) // PERFORM FFT on CPU with FFTW // ------------------------------------ void fftw_data ( void ) { // FFT transform the data (using distributed FFTW) if(rank == 0)printf("PERFORMING FFT\n"); Loading Loading @@ -81,9 +86,18 @@ void fftw_data(){ timing_wt.fftw += CPU_TIME_wt - start; #endif return; } // ------------------------------------ #else // PERFORM FFT ON GPU USING CUFFTMP // ------------------------------------ void fftw_data ( void ) { // FFT transform the data (using distributed FFTW) if(rank == 0)printf("PERFORMING FFT\n"); #if defined(USE_FFTW) && defined(CUFFTMP) // FFT transform the data using cuFFT if(rank==0)printf("PERFORMING CUDA FFT\n"); Loading @@ -105,10 +119,13 @@ void fftw_data(){ timing_wt.cufftmp += CPU_TIME_wt - start; #endif return; } #endif // END OF FFT SELECTION } void write_fftw_data(){ Loading