Browse Source

TODO: add option to choose maxnodes

Samuel Thibault 12 years ago
parent
commit
25bfc106c2
2 changed files with 2 additions and 1 deletions
  1. 1 0
      configure.ac
  2. 1 1
      src/datawizard/memory_nodes.c

+ 1 - 0
configure.ac

@@ -1069,6 +1069,7 @@ AC_MSG_RESULT($nmaxbuffers)
 AC_DEFINE_UNQUOTED(STARPU_NMAXBUFS, [$nmaxbuffers],
 		[how many buffers can be manipulated per task])
 
+# TODO: add option to choose maxnodes
 if test x$enable_simgrid = xyes ; then
 	# We still need the room for the virtual CUDA/OpenCL devices
 	maxnodes=16

+ 1 - 1
src/datawizard/memory_nodes.c

@@ -111,7 +111,7 @@ unsigned _starpu_memory_node_register(enum starpu_node_kind kind, int devid)
 	unsigned nnodes;
 	/* ATOMIC_ADD returns the new value ... */
 	nnodes = STARPU_ATOMIC_ADD(&descr.nnodes, 1);
-	STARPU_ASSERT_MSG(nnodes < STARPU_MAXNODES,"Too many nodes !");
+	STARPU_ASSERT_MSG(nnodes < STARPU_MAXNODES,"Too many nodes (%u)!", nnodes);
 
 	descr.nodes[nnodes-1] = kind;
 	_STARPU_TRACE_NEW_MEM_NODE(nnodes-1);