Browse Source

Move STARPU_CUFFT_REPORT_ERROR from starpufftx.c to starpufft.h, so that it can be used in other files.

Cyril Roelandt 12 years ago
parent
commit
3d96530bf1
2 changed files with 2 additions and 3 deletions
  1. 2 0
      starpufft/starpufft.h
  2. 0 3
      starpufft/starpufftx.c

+ 2 - 0
starpufft/starpufft.h

@@ -20,6 +20,8 @@
 #include <starpu.h>
 #ifdef STARPU_USE_CUDA
 #include <cufft.h>
+#define STARPU_CUFFT_REPORT_ERROR(status) \
+	STARPUFFT(report_error)(__starpu_func__, __FILE__, __LINE__, status)
 #endif /* !STARPU_USE_CUDA */
 
 #define STARPUFFT_FORWARD -1

+ 0 - 3
starpufft/starpufftx.c

@@ -510,7 +510,4 @@ STARPUFFT(report_error)(const char *func, const char *file, int line, cufftResul
 			func, file, line, status, errormsg);
 	STARPU_ABORT();
 }
-
-#define STARPU_CUFFT_REPORT_ERROR(status) \
-	STARPUFFT(report_error)(__starpu_func__, __FILE__, __LINE__, status)
 #endif /* !STARPU_USE_CUDA */