Explorar el Código

simgrid: pass --cfg=contexts/factory:thread during make check

This makes them significantly longer, but allows gdb to see all threads
Samuel Thibault hace 5 años
padre
commit
c6b2efb821
Se han modificado 1 ficheros con 11 adiciones y 3 borrados
  1. 11 3
      tools/starpu_smpirun.in

+ 11 - 3
tools/starpu_smpirun.in

@@ -40,11 +40,19 @@ else
 	DASH=_
 fi
 
+EXTRA_OPT=""
+
 if [ "$SMPI_MAJOR" -ge 4 -o \( "$SMPI_MAJOR" = 3 -a "$SMPI_MINOR" -ge 16 \) ]
 then
-	PRIV_OPT="--cfg=smpi/privatization:yes"
+	EXTRA_OPT+=" --cfg=smpi/privatization:yes"
 else
-	PRIV_OPT="--cfg=smpi/privatize${DASH}global${DASH}variables:yes"
+	EXTRA_OPT+=" --cfg=smpi/privatize${DASH}global${DASH}variables:yes"
+fi
+
+if [ -n "$TEST_LOGS" ]
+then
+	# Testsuite, use thread factory to let gdb get all traces
+	EXTRA_OPT+=" --cfg=contexts/factory:thread"
 fi
 
 # When executed from source, take xslt from source
@@ -125,7 +133,7 @@ EOF
 
 STACKSIZE=$(ulimit -s)
 [ "$STACKSIZE" != unlimited ] || STACKSIZE=8192
-$SMPIRUN $GDB -platform $PLATFORM -hostfile $MPI_HOSTFILE -np $NP "$@" $PRIV_OPT --cfg=smpi/simulate${DASH}computation:no --cfg=contexts/stack${DASH}size:$STACKSIZE
+$SMPIRUN $GDB -platform $PLATFORM -hostfile $MPI_HOSTFILE -np $NP "$@" $EXTRA_OPT --cfg=smpi/simulate${DASH}computation:no --cfg=contexts/stack${DASH}size:$STACKSIZE
 RET=$?
 
 rm -f $PLATFORM