https://hal.archives-ouvertes.fr/hal-01730321
Raw File
Tip revision: 805a9067bad77212cdadce80a424a86bf5b39b43 authored by Software Heritage on 09 November 2017, 00:00:00 UTC
hal: Deposit 357 in collection hal
Tip revision: 805a906
loader-cross.sh.in
#!/bin/bash
#
# StarPU --- Runtime system for heterogeneous multicore architectures.
#
# Copyright (C) 2013, 2015 Universite de Bordeaux
# Copyright (C) 2015       CNRS
#
# 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.

top_srcdir="@top_srcdir@"
export top_builddir="@top_builddir@"

exec="$1"
shift

if test -z "$exec"
then
    echo "[Error] Syntax: $0 <mic_executable> <args>"
    exit 1
fi

NATIVE=${PWD/\/build_mic\//\/build_host\/}
DIR="$(dirname "$exec")"
FILE="$(basename "$exec")"

export SINK_LD_LIBRARY_PATH="$top_builddir/src/.libs:$SINK_LD_LIBRARY_PATH"
export STARPU_MIC_SINK_PROGRAM_NAME="$exec" 

# in case libtool got into play
[ -x "$DIR/.libs/$FILE" ] && STARPU_MIC_SINK_PROGRAM_NAME="$DIR/.libs/$FILE" 

$top_builddir/../build_host/tests/loader "$NATIVE/$exec" "$@"
back to top