gri*_*tis 3 fortran numpy gfortran g77 lapack
我想安装最新版本numpy(Python的数字库),而版本(v1.6.1)还没有在Ubuntu Oneiric存储库中.当我继续手动安装它时,我读入INSTALL文件,该文件numpy需要使用构建的相同编译器LAPACK(使用的fortran lib numpy)构建.不幸的是,我不知道是哪个编译器.我没有LAPACK自己安装- apt-get当我安装旧版numpy(v1.5.1)时,我没有安装apt.如果我不得不猜测,我会说gfortran,但我宁愿不要搞砸了.
我如何确定哪个编译器构建了我当前的安装LAPACK?有没有简单的方法 - 也许运行一些使用它并检查输出的fortran代码?
谢谢!
从INSTALL您引用的同一文件中...
How to check the ABI of blas/lapack/atlas
-----------------------------------------
One relatively simple and reliable way to check for the compiler used to build
a library is to use ldd on the library. If libg2c.so is a dependency, this
means that g77 has been used. If libgfortran.so is a a dependency, gfortran has
been used. If both are dependencies, this means both have been used, which is
almost always a very bad idea.
Run Code Online (Sandbox Code Playgroud)
如果我不得不猜测,我可能会猜测gfortran也是我所知道的唯一两个免费的fortran编译器是g77和gfortran和g77开发已经非常死了据我所知...另一件需要检查的是g77(通过默认情况下,将两个下划线附加到符号,而gfortran(默认情况下)仅附加一个.这可能是numpy知道最重要的事情......虽然可能存在其他微妙的差异(例如,numpy正在进行一些肮脏的黑客攻击以获取存储在公共块中的信息).
| 归档时间: |
|
| 查看次数: |
1255 次 |
| 最近记录: |