ソースを参照

src/datawizard/memalloc.c: _starpu_get_global_mem_size(): abort when trying to compute the size of the RAM.

We should probably never get there,  since the OS should be able to swap for us.
Cyril Roelandt 13 年 前
コミット
0ba5be67af
共有1 個のファイルを変更した6 個の追加5 個の削除を含む
  1. 6 5
      src/datawizard/memalloc.c

+ 6 - 5
src/datawizard/memalloc.c

@@ -709,11 +709,12 @@ static size_t _starpu_get_global_mem_size(int dst_node)
 	switch(kind)
 	{
 		case STARPU_CPU_RAM:
-#ifdef STARPU_DEVEL
-#warning to be fixed
-#endif
-			global_mem_size = 64*1024*1024;
-			break;
+		{
+			/* We should probably never get here : if there is no
+ 			 * space left in RAM, the operating system should swap
+			 * to disk for us. */
+			STARPU_ABORT();
+		}
 #ifdef STARPU_USE_CUDA
 		case STARPU_CUDA_RAM:
 		{