hello dear!
I'm new to plasma and have a question that may sounds stupid..
I successfully installed PLASMA on my Ubuntu using installer script and the following line:
./setup.py --cc gcc --fc gfortran --blaslib="-lmkl_gf -lmkl_sequential -lmkl_core -lpthread"
All tests executed fine.
However, when I try to compile my code calling PLASMA, some undefined reference errors are shown..
For instance, I tried to compile the file "example_dgesv.c" from /build/plasma_2.1.0/examples/ as follows:
$gcc example_dgesv.c -o dgesvTest -lcblas -lcorelapack -lcoreblas -lplasma -lmkl_gf -lmkl_sequential -lmkl_core -lguide -lpthread -lm
First I changed the start of file:
//#include <cblas.h>
//#include <plasma.h>
#include "../src/lapack.h"
#include "../include/cblas.h"
#include "../include/plasma.h"
#include <math.h>
The compilation result is:
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dormqr':
core_dblas.c:(.text+0x7d): undefined reference to `core_dormqr_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dormlq':
core_dblas.c:(.text+0x10d): undefined reference to `core_dormlq_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dtstrf':
core_dblas.c:(.text+0x188): undefined reference to `core_dtstrf_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dtsqrt':
core_dblas.c:(.text+0x1ea): undefined reference to `core_dtsqrt_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dtslqt':
core_dblas.c:(.text+0x24a): undefined reference to `core_dtslqt_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dssssm':
core_dblas.c:(.text+0x38f): undefined reference to `core_dssssm_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dssmqr':
core_dblas.c:(.text+0x432): undefined reference to `core_dssmqr_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dssmlq':
core_dblas.c:(.text+0x4d2): undefined reference to `core_dssmlq_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dgetrf':
core_dblas.c:(.text+0x557): undefined reference to `core_dgetrf_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dgessm':
core_dblas.c:(.text+0x5ac): undefined reference to `core_dgessm_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dgeqrt':
core_dblas.c:(.text+0x60c): undefined reference to `core_dgeqrt_'
/usr/local/lib/libplasma.a(core_dblas.o): In function `CORE_dgelqt':
core_dblas.c:(.text+0x6dc): undefined reference to `core_dgelqt_'
collect2: ld returned 1 exit status
Please, could you help me with compiling/linking process?
Thank you, Jacob
