Hi Pieter,

On 28/05/16 15:04, Pieter Neerincx wrote:
Hi all,

I'm trying to build a new R with a recent foss toolchain. I've tried 2015b and 
2016a, but so far no luck. The build fails on compiling libRlapack.so. After 
some digging I found out that I have for example as part of foss/2015b:

        ScaLAPACK/2.0.2-gompi-2015b-OpenBLAS-0.2.14-LAPACK-3.5.0

with a dependency on

        OpenBLAS/0.2.14-GNU-4.9.3-2.25-LAPACK-3.5.0

The name suggests that LAPACK/3.5.0 is a dependency and will be loaded too, but LAPACK is 
absent according to "module list", which makes sense as none of the deployed 
module files specify LAPACK.
I also cannot find LAPACK back as OS dependency in the corresponding *.eb 
easyconfigs... What am I missing here?

The LAPACK sources are provided to OpenBLAS, which picks it up during the build and embeds the LAPACK symbols in the OpenBLAS library:

$ nm $EBROOTOPENBLAS/lib/libopenblas.a | grep dgeev
dgeev.o:
0000000000000000 T dgeev_
dgeevx.o:
0000000000000000 T dgeevx_
lapacke_dgeev.o:
0000000000000000 T LAPACKE_dgeev
                 U LAPACKE_dgeev_work
lapacke_dgeev_work.o:
0000000000000000 T LAPACKE_dgeev_work
                 U dgeev_
lapacke_dgeevx.o:
0000000000000000 T LAPACKE_dgeevx
                 U LAPACKE_dgeevx_work
lapacke_dgeevx_work.o:
0000000000000000 T LAPACKE_dgeevx_work
                 U dgeevx_


I was confused by this too initially, see https://github.com/xianyi/OpenBLAS/issues/203


regards,

Kenneth

Reply via email to