Browse Source

Fix test build without cuda

Samuel Thibault 8 years ago
parent
commit
dc7741acfe
1 changed files with 5 additions and 7 deletions
  1. 5 7
      include/starpu_cusparse.h

+ 5 - 7
include/starpu_cusparse.h

@@ -18,23 +18,21 @@
 #ifndef __STARPU_CUSPARSE_H__
 #ifndef __STARPU_CUSPARSE_H__
 #define __STARPU_CUSPARSE_H__
 #define __STARPU_CUSPARSE_H__
 
 
-#if defined STARPU_USE_CUDA && !defined STARPU_DONT_INCLUDE_CUDA_HEADERS
-
-#include <cusparse.h>
-
 #ifdef __cplusplus
 #ifdef __cplusplus
 extern "C"
 extern "C"
 {
 {
 #endif
 #endif
 
 
 void starpu_cusparse_init(void);
 void starpu_cusparse_init(void);
-cusparseHandle_t starpu_cusparse_get_local_handle(void);
 void starpu_cusparse_shutdown(void);
 void starpu_cusparse_shutdown(void);
 
 
-#ifdef __cplusplus
-}
+#if defined STARPU_USE_CUDA && !defined STARPU_DONT_INCLUDE_CUDA_HEADERS
+#include <cusparse.h>
+cusparseHandle_t starpu_cusparse_get_local_handle(void);
 #endif
 #endif
 
 
+#ifdef __cplusplus
+}
 #endif
 #endif
 
 
 #endif /* __STARPU_CUSPARSE_H__ */
 #endif /* __STARPU_CUSPARSE_H__ */