Please refer to BLAS_LIBS, LAPACK_LIBS in Writing R Extensions. For an
example package that uses BLAS/LAPACK, see e.g. "stats" or "Matrix". The
package will then use the BLAS/LAPACK implementation as chosen by the
user/system administrator at dynamic linking time (see R Installation
and Adminis
Brian,
This is the code I am using to linking with BLAS using MKL or OpenBLAS
#MKL
if [ -n "$MKLROOT" ] && [ -d "$MKLROOT" ]; then
echo "mkl_dir directory exists!"
echo "Great... continue set-up"
source ${MKLROOT}/bin/mklvars.sh intel64
DEFINE_BLAS_LIBS_CMAKE="-DBLAS_LIBRARIES='-L
On Sun, 2019-09-08 at 10:04 +, Sameh M. Abdulah wrote:
> I am linking my package against openblas but it complains that
> lapacke is not found which I need for the installation.
>
> I have another alternative to linking against MKL but I cannot find
> it using MKLROOT variable on CRAN servers.