1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- #!@REALBASH@
- # StarPU --- Runtime system for heterogeneous multicore architectures.
- #
- # Copyright (C) 2020 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.
- #
- set -x
- export JULIA_LOAD_PATH=@STARPU_SRC_DIR@/julia:$JULIA_LOAD_PATH
- export STARPU_INCLUDE_DIR=@STARPU_BUILD_DIR@/include
- export STARPU_JULIA_LIB=@STARPU_BUILD_DIR@/julia/src/.libs/libstarpujulia-1.3.so
- export STARPU_JULIA_BUILD=@STARPU_BUILD_DIR@/julia
- export JULIA_NUM_THREADS=8
- srcdir=@STARPU_SRC_DIR@/julia/examples
- if test "$1" == "-calllib"
- then
- shift
- pwd
- rm -f extern_tasks.so
- make -f @STARPU_BUILD_DIR@/julia/src/dynamic_compiler/Makefile extern_tasks.so SOURCES_CPU=$srcdir/$1
- shift
- export JULIA_TASK_LIB=$PWD/extern_tasks.so
- fi
- srcfile=$1
- if test ! -f $srcdir/$srcfile
- then
- echo "Error. File $srcdir/$srcfile not found"
- exit 1
- fi
- shift
- #cd $srcdir/$(dirname $srcfile)
- #@JULIA@ $(basename $srcfile) $*
- @JULIA@ $srcdir/$srcfile $*
|