execute.sh.in 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!@REALBASH@
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2020 Université de Bordeaux, CNRS (LaBRI UMR 5800), Inria
  5. #
  6. # StarPU is free software; you can redistribute it and/or modify
  7. # it under the terms of the GNU Lesser General Public License as published by
  8. # the Free Software Foundation; either version 2.1 of the License, or (at
  9. # your option) any later version.
  10. #
  11. # StarPU is distributed in the hope that it will be useful, but
  12. # WITHOUT ANY WARRANTY; without even the implied warranty of
  13. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. #
  15. # See the GNU Lesser General Public License in COPYING.LGPL for more details.
  16. #
  17. set -x
  18. export JULIA_LOAD_PATH=@STARPU_SRC_DIR@/julia/src:$JULIA_LOAD_PATH
  19. export STARPU_JULIA_LIB=@STARPU_BUILD_DIR@/julia/src/.libs/libstarpujulia-1.3.so
  20. export STARPU_JULIA_BUILD=@STARPU_BUILD_DIR@/julia
  21. srcdir=@STARPU_SRC_DIR@/julia/examples
  22. if test "$1" == "-calllib"
  23. then
  24. shift
  25. pwd
  26. rm -f extern_tasks.so
  27. make -f @STARPU_BUILD_DIR@/julia/src/dynamic_compiler/Makefile extern_tasks.so SOURCES_CPU=$srcdir/$1
  28. shift
  29. export JULIA_TASK_LIB=$PWD/extern_tasks.so
  30. fi
  31. srcfile=$1
  32. if test ! -f $srcdir/$srcfile
  33. then
  34. echo "Error. File $srcdir/$srcfile not found"
  35. exit 1
  36. fi
  37. shift
  38. #cd $srcdir/$(dirname $srcfile)
  39. #@JULIA@ $(basename $srcfile) $*
  40. @JULIA@ $srcdir/$srcfile $*