Browse Source

Move the prototype of STARPUFFT(report_error) so that the compilation works no matter what options are passed to configure.

Cyril Roelandt 12 years ago
parent
commit
58869e6c49
3 changed files with 9 additions and 2 deletions
  1. 4 0
      starpufft/starpufft-double.h
  2. 4 0
      starpufft/starpufft-float.h
  3. 1 2
      starpufft/starpufft.h

+ 4 - 0
starpufft/starpufft-double.h

@@ -48,4 +48,8 @@ typedef cufftDoubleComplex _cufftComplex;
 #define STARPUFFT(name) starpufft_##name
 #define _FFTW(name) fftw_##name
 
+#ifdef STARPU_USE_CUDA
+void STARPUFFT(report_error)(const char *func, const char *file, int line, cufftResult status);
+#endif /* !STARPU_USE_CUDA */
+
 #define TYPE ""

+ 4 - 0
starpufft/starpufft-float.h

@@ -48,4 +48,8 @@ typedef cufftComplex _cufftComplex;
 #define STARPUFFT(name) starpufftf_##name
 #define _FFTW(name) fftwf_##name
 
+#ifdef STARPU_USE_CUDA
+void STARPUFFT(report_error)(const char *func, const char *file, int line, cufftResult status);
+#endif /* !STARPU_USE_CUDA */
+
 #define TYPE "f"

+ 1 - 2
starpufft/starpufft.h

@@ -55,8 +55,7 @@ void starpufft(destroy_plan)(starpufft(plan) p); \
 \
 void starpufft(startstats)(void); \
 void starpufft(stopstats)(void); \
-void starpufft(showstats)(FILE *out); \
-void starpufft(report_error)(const char *func, const char *file, int line, cufftResult status);
+void starpufft(showstats)(FILE *out);
 
 __STARPUFFT_INTERFACE(__STARPUFFT, double)
 __STARPUFFT_INTERFACE(__STARPUFFTF, float)