execute.sh.in 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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:$JULIA_LOAD_PATH
  19. export STARPU_INCLUDE_DIR=@STARPU_BUILD_DIR@/include
  20. export STARPU_JULIA_LIB=@STARPU_BUILD_DIR@/julia/src/.libs/libstarpujulia-1.3.so
  21. export STARPU_JULIA_BUILD=@STARPU_BUILD_DIR@/julia
  22. srcdir=@STARPU_SRC_DIR@/julia/examples
  23. if test "$1" == "-calllib"
  24. then
  25. shift
  26. pwd
  27. rm -f extern_tasks.so
  28. make -f @STARPU_BUILD_DIR@/julia/src/dynamic_compiler/Makefile extern_tasks.so SOURCES_CPU=$srcdir/$1
  29. shift
  30. export JULIA_TASK_LIB=$PWD/extern_tasks.so
  31. fi
  32. srcfile=$1
  33. if test ! -f $srcdir/$srcfile
  34. then
  35. echo "Error. File $srcdir/$srcfile not found"
  36. exit 1
  37. fi
  38. shift
  39. #cd $srcdir/$(dirname $srcfile)
  40. #@JULIA@ $(basename $srcfile) $*
  41. @JULIA@ $srcdir/$srcfile $*