Skip to content

Remove finding MKL in CMake, for now, specify MKL/SYCL flags manually… #455

Remove finding MKL in CMake, for now, specify MKL/SYCL flags manually…

Remove finding MKL in CMake, for now, specify MKL/SYCL flags manually… #455

Workflow file for this run

name: Run Github CI tests.
on: [push, pull_request]
jobs:
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
compiler:
- gcc
test: [0,1,2,3,4,5]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install dependencies
run: |
export BLUE="\033[34;1m"
mkdir -p installDir
printf "${BLUE} PG; Installing gcc via apt\n"
sudo apt-get update
sudo apt-get install build-essential software-properties-common -y
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt-get install gcc g++ -y
# sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60 --slave /usr/bin/g++ g++ /usr/bin/g++-10
export CXX="g++"
export CC="gcc"
printf "${BLUE} PG; Done installing gcc via apt\n"
printf "${BLUE} PG; Installing gfortran via apt\n"
sudo apt-get install gfortran -y
# sudo update-alternatives --install /usr/bin/gfortran gfortran /usr/bin/gfortran-10 60
printf "${BLUE} PG; Done installing gfortran via apt\n"
printf "${BLUE} PG; Installing openmpi\n"
sudo apt-get install openmpi-bin libopenmpi-dev
printf "${BLUE} PG; Done installing openmpi\n"
printf "${BLUE} PG; Installing metis\n"
sudo apt-get install libmetis-dev libparmetis-dev
printf "${BLUE} PG; Done installing metis\n"
# printf "${BLUE} PG; Installing BLAS from apt\n"
# sudo apt-get install libblas-dev
# export BLAS_LIB=/usr/lib/x86_64-linux-gnu/libblas.so
# printf "${BLUE} PG; Done installing BLAS from apt\n"
# printf "${BLUE} PG; Installing LAPACK from apt\n"
# sudo apt-get install liblapack-dev
# export LAPACK_LIB=/usr/lib/x86_64-linux-gnu/liblapack.so
# printf "${BLUE} PG; Done installing LAPACK from apt\n"
printf "${BLUE} PG; Installing OpenBLAS from apt\n"
sudo apt-get install libopenblas-openmp-dev
# export LAPACK_LIB=/usr/lib/x86_64-linux-gnu/liblapack.so
printf "${BLUE} PG; Done installing OpenBLAS from apt\n"
printf "${BLUE} PG; Installing ScaLAPACK from apt\n"
sudo apt-get install libscalapack-mpi-dev
export SCALAPACK_LIB=/usr/lib/x86_64-linux-gnu/libscalapack-openmpi.so
printf "${BLUE} PG; Done installing ScaLAPACK from apt\n"
- name: Install package
run: |
export BLUE="\033[34;1m"
# export BLAS_LIB=/usr/lib/x86_64-linux-gnu/libblas.so
# export LAPACK_LIB=/usr/lib/x86_64-linux-gnu/liblapack.so
export SCALAPACK_LIB="/usr/lib/x86_64-linux-gnu/libscalapack-openmpi.so"
printf "${BLUE} PG; Installing STRUMPACK from source\n"
cd $GITHUB_WORKSPACE
rm -rf build
mkdir -p build
mkdir -p install
cd build
export CRAYPE_LINK_TYPE=dynamic
cmake .. \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_C_COMPILER=mpicc \
-DCMAKE_CXX_COMPILER=mpic++ \
-DCMAKE_Fortran_COMPILER=mpif90 \
-DCMAKE_INSTALL_PREFIX=../install \
-DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_VERBOSE_MAKEFILE:BOOL=OFF \
-DTPL_SCALAPACK_LIBRARIES="$SCALAPACK_LIB"
make
make install
make examples
printf "${BLUE} PG; Done installing STRUMPACK from source\n"
cd ../
export STRUMPACK_DIR=`pwd`/install
cd test/build_external/
mkdir -p build
cd build
cmake ../
make
- name: Test
run: |
cd $GITHUB_WORKSPACE
export TEST_NUMBER=${{ matrix.test }}
sh ./.ci_tests.sh
- name: External build
run: |
cd $GITHUB_WORKSPACE
export STRUMPACK_DIR=`pwd`/install
cd test/build_external/
mkdir -p build
cd build
cmake ../
make