ソースを参照

StarPU-FFT: fix error when using both CUDA and FFTW3

Sylvain Henry 13 年 前
コミット
841d32a1b2
共有2 個のファイルを変更した4 個の追加4 個の削除を含む
  1. 2 2
      starpufft/double.h
  2. 2 2
      starpufft/float.h

+ 2 - 2
starpufft/double.h

@@ -18,7 +18,7 @@
 #include <complex.h>
 #include <complex.h>
 #include <starpu_config.h>
 #include <starpu_config.h>
 
 
-#ifdef STARPU_HAVE_FFTW
+#if defined(STARPU_HAVE_FFTW) && !defined(__CUDACC__) 
 #include <fftw3.h>
 #include <fftw3.h>
 #endif
 #endif
 
 
@@ -30,7 +30,7 @@
 #define DOUBLE
 #define DOUBLE
 
 
 typedef double real;
 typedef double real;
-#ifdef STARPU_HAVE_FFTW
+#if defined(STARPU_HAVE_FFTW) && !defined(__CUDACC__) 
 typedef fftw_complex _fftw_complex;
 typedef fftw_complex _fftw_complex;
 typedef fftw_plan _fftw_plan;
 typedef fftw_plan _fftw_plan;
 #endif
 #endif

+ 2 - 2
starpufft/float.h

@@ -18,7 +18,7 @@
 #include <complex.h>
 #include <complex.h>
 #include <starpu_config.h>
 #include <starpu_config.h>
 
 
-#ifdef STARPU_HAVE_FFTW
+#if defined(STARPU_HAVE_FFTW) && !defined(__CUDACC__) 
 #include <fftw3.h>
 #include <fftw3.h>
 #endif
 #endif
 
 
@@ -30,7 +30,7 @@
 #define FLOAT
 #define FLOAT
 
 
 typedef float real;
 typedef float real;
-#ifdef STARPU_HAVE_FFTW
+#if defined(STARPU_HAVE_FFTW) && !defined(__CUDACC__) 
 typedef fftwf_complex _fftw_complex;
 typedef fftwf_complex _fftw_complex;
 typedef fftwf_plan _fftw_plan;
 typedef fftwf_plan _fftw_plan;
 #endif
 #endif