Explorar o código

src/util/starpu_cublas.c: no need to define the function if CUDA is not enabled

Nathalie Furmento %!s(int64=13) %!d(string=hai) anos
pai
achega
7074411fbf
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/util/starpu_cublas.c

+ 2 - 2
src/util/starpu_cublas.c

@@ -30,12 +30,12 @@ static void init_cublas_func(void *args STARPU_ATTRIBUTE_UNUSED)
 }
 #endif
 
+#ifdef STARPU_USE_CUDA
 static void shutdown_cublas_func(void *args STARPU_ATTRIBUTE_UNUSED)
 {
-#ifdef STARPU_USE_CUDA
 	cublasShutdown();
-#endif
 }
+#endif
 
 void starpu_helper_cublas_init(void)
 {