Browse Source

In simgrid mode without cuda/opencl compiled, we need several memory nodes.

Samuel Thibault 12 years ago
parent
commit
64ced3026d
1 changed files with 16 additions and 12 deletions
  1. 16 12
      configure.ac

+ 16 - 12
configure.ac

@@ -1048,19 +1048,23 @@ AC_MSG_RESULT($nmaxbuffers)
 AC_DEFINE_UNQUOTED(STARPU_NMAXBUFS, [$nmaxbuffers],
 		[how many buffers can be manipulated per task])
 
-# We have one memory node shared by all CPU workers, one node per GPU
-maxnodes=1
-if test x$enable_cuda = xyes ; then
-	# we could have used nmaxcudadev + 1, but this would certainly give an
-	# odd number.
-	maxnodes=`expr $maxnodes + $nmaxcudadev`
-fi
-if test x$enable_opencl = xyes ; then
-	# we could have used nmaxcudadev + 1, but this would certainly give an
-	# odd number.
-	maxnodes=`expr $maxnodes + $nmaxopencldev`
+if test x$enable_simgrid = xyes ; then
+	maxnodes=16
+else
+	# We have one memory node shared by all CPU workers, one node per GPU
+	maxnodes=1
+	if test x$enable_cuda = xyes ; then
+		# we could have used nmaxcudadev + 1, but this would certainly give an
+		# odd number.
+		maxnodes=`expr $nodes + $nmaxcudadev`
+	fi
+	if test x$enable_opencl = xyes ; then
+		# we could have used nmaxcudadev + 1, but this would certainly give an
+		# odd number.
+		maxnodes=`expr $nodes + $nmaxopencldev`
+	fi
+	# todo: set maxnodes to the next power of 2 greater than maxnodes
 fi
-# todo: set maxnodes to the next power of 2 greater than maxnodes
 
 AC_MSG_CHECKING(maximum number of memory nodes)
 AC_MSG_RESULT($maxnodes)