Browse Source

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

Samuel Thibault 10 years ago
parent
commit
d07623769c
1 changed files with 3 additions and 1 deletions
  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