Explorar o código

Set the starpu-simgrid-mip stack size to the user ulimit

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
d07623769c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      tools/starpu_smpirun.in

+ 3 - 1
tools/starpu_smpirun.in

@@ -65,6 +65,8 @@ EOF
 EOF
 ) > $PLATFORM
 
-$SMPIRUN -platform $PLATFORM -hostfile $MPI_HOSTFILE "$@" --cfg=smpi/privatize_global_variables:yes
+STACKSIZE=$(ulimit -s)
+[ "$STACKSIZE" != unlimited ] || STACKSIZE=8192
+$SMPIRUN -platform $PLATFORM -hostfile $MPI_HOSTFILE "$@" --cfg=smpi/privatize_global_variables:yes --cfg=contexts/stack_size=$STACKSIZE
 
 rm -f $TEMP