1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/bash
set -e
DEB_HOST_ARCH=`dpkg-architecture -qDEB_HOST_ARCH`
if [ "${DEB_HOST_ARCH}" = "ppc64el" ]; then
lscpu
ls -l /usr/lib/*/liblapack.so*
ls -l /etc/alternatives/liblapack.so*
fi
for PY3VER in `py3versions -sv`; do
SLEPC_DIR=/usr/lib/slepc
PETSC_DIR=/usr/lib/petsc
echo "Running slepc4py demos for python $PY3VER using SLEPC_DIR=${SLEPC_DIR} PETSC_DIR=${PETSC_DIR}"
# test demos as installed
cp -r /usr/share/doc/python-slepc4py-doc/examples/demo test-demos-py$PY3VER
gunzip -r test-demos-py$PY3VER
echo "Run demos (single processor) with python $PY3VER"
make SLEPC_DIR=${SLEPC_DIR} PETSC_DIR=${PETSC_DIR} PYTHON=python$PY3VER -C test-demos-py$PY3VER
done
|