Explorar o código

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 %!s(int64=13) %!d(string=hai) anos
pai
achega
0ba5be67af
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  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:
 		{