连接ipopt与openblas

问题描述 投票:0回答:1

目前,我正在尝试针对openblas构建Ipopt链接。我下载了openblas的源代码,并做了 make 父目录中。

父目录中的 configure Ipopt的脚本有几个选项可以链接到blas。

我试过 ./configure --with-blas="-L/home/moritz/build/CoinIpopt_test/ThirdParty/OpenBLAS-0.2.14/libopenblas.so"

但我得到的错误是

checking whether user supplied BLASLIB="-L/home/moritz/build/CoinIpopt_test/ThirdParty/OpenBLAS-0.2.14/libopenblas.so" works... no configure: error: user supplied BLAS library "-L/home/moritz/build/CoinIpopt_test/ThirdParty/OpenBLAS-0.2.14/libopenblas.so" does not work

任何提示如何实现我想要的?最后,我想做一个conda包。我确实已经安装了openblas与anaconda。但我确实得到了同样的错误信息,如果我链接到已安装的 libopenblas.so

python blas openblas ipopt
1个回答
1
投票

管理得到它的工作。我不得不安装openblas到一个我选择的目录,通过

make install PREFIX=/home/....../

之后,我编译了Ipopt,使用了

./configure --with-blas-incdir="-I/home/.../openblas/include/" --with-blas-lib="-L/home/.../openblas/lib/"
© www.soinside.com 2019 - 2024. All rights reserved.