浏览代码

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:
 		{