execute.sh.in 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. #!@REALBASH@
  2. # StarPU --- Runtime system for heterogeneous multicore architectures.
  3. #
  4. # Copyright (C) 2020-2021 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_BUILD_DIR=@STARPU_BUILD_DIR@
  20. export STARPU_SRC_DIR=@STARPU_SRC_DIR@
  21. export STARPU_JULIA_LIB=@STARPU_BUILD_DIR@/julia/src/.libs/libstarpujulia-1.3
  22. export STARPU_JULIA_BUILD=@STARPU_BUILD_DIR@/julia
  23. export LD_LIBRARY_PATH=@STARPU_BUILD_DIR@/julia/src/.libs/:$LD_LIBRARY_PATH
  24. export JULIA_NUM_THREADS=8
  25. export STARPU_NOPENCL=0
  26. export STARPU_SCHED=dmda
  27. srcdir=@STARPU_SRC_DIR@/julia/examples
  28. rm -f genc*.c gencuda*.cu genc*.o
  29. if test "$1" == "-calllib"
  30. then
  31. shift
  32. pwd
  33. rm -f extern_tasks.so
  34. make -f @STARPU_BUILD_DIR@/julia/src/dynamic_compiler/Makefile extern_tasks.so SOURCES_CPU=$srcdir/$1
  35. shift
  36. export JULIA_TASK_LIB=$PWD/extern_tasks.so
  37. fi
  38. srcfile=$1
  39. if test ! -f $srcdir/$srcfile
  40. then
  41. echo "Error. File $srcdir/$srcfile not found"
  42. exit 1
  43. fi
  44. shift
  45. #cd $srcdir/$(dirname $srcfile)
  46. #@JULIA@ $(basename $srcfile) $*
  47. @JULIA@ $srcdir/$srcfile $*