CNTK icon indicating copy to clipboard operation
CNTK copied to clipboard

Undefined LAPACKE_dgesvd, LAPACKE_sgesvd

Open haryngod opened this issue 4 years ago • 3 comments

I tried to build cpu only c++ version in ubuntu.

I use 2.7 version of CNTK and I install lapacke-dev, lapacke-dev also. I gave configuration, openblas 0.3.7, boost 1.60.0, protobuf-3.1.0 and mpi.

However, while compiling it shows blow undefinition error.

/home/aiware/CNTK/build/release/lib/libCntk.Math-2.7.so: undefined reference to `LAPACKE_dgesvd'
/home/aiware/CNTK/build/release/lib/libCntk.Math-2.7.so: undefined reference to `LAPACKE_sgesvd'

Is there someone help me?

haryngod avatar Apr 06 '20 04:04 haryngod

You need install liblapacke-dev and search "LIBS_LIST += openblas m pthread" to your Makefile and use "LIBS_LIST += openblas m pthread lapacke" replace it you can run sed -i s/ "LIBS_LIST += openblas m pthread"/"LIBS_LIST += openblas m pthread lapacke"/g finished it fast

GitSoftwareNow avatar Oct 04 '20 12:10 GitSoftwareNow

@GitSoftwareNow I didn't know I've got the answer. I really appreciate that. Although I do not try to build at this moment, one day I will try your suggestion. Thanks.

haryngod avatar Dec 16 '20 00:12 haryngod

@GitSoftwareNow I didn't know I've got the answer. I really appreciate that. Although I do not try to build at this moment, one day I will try your suggestion. Thanks.

How did you solve this problem, thank you

cwy-16 avatar Jul 26 '22 03:07 cwy-16