execute.sh.in 1.4 KB

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