소스 검색

src/datawizard/malloc.c: add warning about STARPU_MALLOC_PINNED.

Nathalie Furmento 13 년 전
부모
커밋
e7b54ef087
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/datawizard/malloc.c

+ 4 - 0
src/datawizard/malloc.c

@@ -93,6 +93,10 @@ static struct starpu_codelet malloc_pinned_cl =
 };
 #endif
 
+#ifdef STARPU_DEVEL
+#warning starpu_malloc should check if STARPU_MALLOC_PINNED is set, but that is going to break the compatibility with old code as memory which used to be pinned will no longer be (unless we force by default the flag STARPU_MALLOC_PINNED)
+#endif
+
 int starpu_malloc(void **A, size_t dim)
 {
 	int ret=0;