Files
blis/travis/do_sde.sh
Field G. Van Zee 62ea1d33d3 Fixed broken out-of-tree builds.
Details:
- Fixed stale filepaths to check-blastest.sh and check-blistest.sh in
  travis/do_testsuite.sh and travis/do_sde.sh.
- Create a symbolic link to the 'config' directory so that the top-level
  Makefile can find the configs' make_defs.mk files during out-of-tree
  builds.
- Added additional case handling to out-of-tree scenario to handle
  situations where files 'Makefile', 'common.mk', or 'config' exist but
  are not symbolic links. In such cases, configure warns the user and
  exits.
- Homogenized various error messages throughout configure.
- Belated thanks to Victor Eijkhout for requesting the feature added
  in 0f491e9 whereby lesser Makefiles can compile and link against
  an existing installation of BLIS.
2018-08-26 13:35:53 -05:00

48 lines
1.4 KiB
Bash
Executable File

#!/bin/bash
set -e
set -x
SDE_VERSION=sde-external-8.16.0-2018-01-30-lin
SDE_TARBALL=$SDE_VERSION.tar.bz2
SDE=$SDE_VERSION/sde64
set +x
curl -s -X POST https://content.dropboxapi.com/2/files/download -H "Authorization: Bearer $DROPBOX_TOKEN" -H "Dropbox-API-Arg: {\"path\": \"/$SDE_TARBALL\"}" > $SDE_TARBALL
set -x
tar xvf $SDE_TARBALL
make -j2 testsuite-bin
cp $DIST_PATH/testsuite/input.general.fast input.general
cp $DIST_PATH/testsuite/input.operations.fast input.operations
TMP=`ldd ./test_libblis.x | grep ld | sed 's/^.*=> //'`
LD_SO=${TMP%% *}
TMP=`ldd ./test_libblis.x | grep libc | sed 's/^.*=> //'`
LIBC_SO=${TMP%% *}
TMP=`ldd ./test_libblis.x | grep libm | sed 's/^.*=> //'`
LIBM_SO=${TMP%% *}
for LIB in $LD_SO $LIBC_SO $LIBM_SO; do
$DIST_PATH/travis/patch-ld-so.py $LIB .tmp
chmod a+x .tmp
sudo mv .tmp $LIB
done
for ARCH in penryn sandybridge haswell skx knl piledriver steamroller excavator zen; do
if [ "$ARCH" = "knl" ]; then
$SDE -knl -- ./test_libblis.x > output.testsuite
else
$SDE -cpuid_in $DIST_PATH/travis/cpuid/$ARCH.def -- ./test_libblis.x > output.testsuite
fi
$DIST_PATH/testsuite/check-blistest.sh ./output.testsuite
TMP=`grep "active sub-configuration" output.testsuite`
CONFIG=${TMP##* }
if [ "$CONFIG" != "$ARCH" ]; then
echo "Wrong configuration chosen:"
echo " Expected: $ARCH"
echo " Got: $CONFIG"
exit 1
fi
done