Samuel Thibault hace 10 años
padre
commit
df8874cc7e
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/datawizard/malloc.c

+ 2 - 2
src/datawizard/malloc.c

@@ -228,7 +228,7 @@ int starpu_malloc_flags(void **A, size_t dim, int flags)
 				ret = -ENOMEM;
 		}
 
-#ifndef STARPU_SIMGRID
+#if !defined(STARPU_SIMGRID) && defined(STARPU_USE_CUDA)
 end:
 #endif
 	if (ret == 0)
@@ -363,7 +363,7 @@ int starpu_free_flags(void *A, size_t dim, int flags)
 	else
 		free(A);
 
-#ifndef STARPU_SIMGRID
+#if !defined(STARPU_SIMGRID) && defined(STARPU_USE_CUDA)
 out:
 #endif
 	if (flags & STARPU_MALLOC_COUNT)