microsoft / CNTK

Microsoft Cognitive Toolkit (CNTK), an open source deep-learning toolkit
https://docs.microsoft.com/cognitive-toolkit/
Other
17.49k stars 4.3k forks source link

Undefined LAPACKE_dgesvd, LAPACKE_sgesvd #3812

Open haryngod opened 4 years ago

haryngod commented 4 years ago

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?

GitSoftwareNow commented 3 years ago

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

haryngod commented 3 years ago

@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.

cwy-16 commented 1 year ago

@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