| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 | #!@REALBASH@# StarPU --- Runtime system for heterogeneous multicore architectures.## Copyright (C) 2020-2021  Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria## StarPU is free software; you can redistribute it and/or modify# it under the terms of the GNU Lesser General Public License as published by# the Free Software Foundation; either version 2.1 of the License, or (at# your option) any later version.## StarPU is distributed in the hope that it will be useful, but# WITHOUT ANY WARRANTY; without even the implied warranty of# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.## See the GNU Lesser General Public License in COPYING.LGPL for more details.#exampledir=@STARPU_SRC_DIR@/starpupy/examplesmodpath=@STARPU_BUILD_DIR@/src/.libs:pypath=@STARPU_BUILD_DIR@/starpupy/src/build:$PYTHONPATHLOADER=@PYTHON@if test -z "$MPI_LAUNCHER"then    MPI_LAUNCHER="mpiexec -np 2"fimpi=""gdb=""read_arg(){    do_shift=0    if test "$1" == "--valgrind"    then	export PYTHONMALLOC=malloc	LOADER="valgrind --track-origins=yes @PYTHON@"	do_shift=1    elif test "$1" == "--gdb"    then	gdb="gdb"	if test "$mpi" == "mpi"	then	    LOADER="$MPI_LAUNCHER xterm -sl 10000 -hold -e gdb --args @PYTHON@"	else	    LOADER="gdb --args @PYTHON@"	fi	do_shift=1    elif test "$1" == "--mpirun"    then	mpi="mpi"	if test "$gdb" == "gdb"	then	    LOADER="$MPI_LAUNCHER xterm -sl 10000 -hold -e gdb --args @PYTHON@"	else	    LOADER="$MPI_LAUNCHER @PYTHON@"	fi	do_shift=1    fi}for x in $*do    read_arg $x    if test $do_shift == 1    then	shift    fidonefor x in $LOADER_ARGSdo    read_arg $xdoneexamplefile=$1if test -f $examplefilethen    pythonscript=$examplefileelif test -f $exampledir/$examplefilethen    pythonscript=$exampledir/$examplefileelse    echo "Error. Python script $examplefile not found in current directory or in $exampledir"    exit 1fishiftset -xPYTHONPATH=$pypath LD_LIBRARY_PATH=$modpath $LOADER $pythonscript $*
 |