compile.sh 792 Bytes
#!/bin/bash

############################################################

DGEMVBASEDIR=`pwd`
HDPIBASEDIR=${DGEMVBASEDIR}/hdpi

############################################################
#     HDPI Library
############################################################

echo "Building HDPI library..."

(cd hdpi \
    && mkdir -p build \
    && cd build \
    && cmake -DCMAKE_INSTALL_PREFIX=${HDPIBASEDIR}/installation_dir .. \
    && make \
    && make install)

############################################################

echo "Setting MKL variables..."
source /opt/intel/mkl/bin/mklvars.sh intel64

echo "Compiling heterogeneous dgemm..."
make clean all

############################################################

exit 0

############################################################