How to use numpy with OpenBLAS instead of Atlas in Ubuntu?

后端 未结 3 1306
孤城傲影
孤城傲影 2020-12-14 03:22

I have looked for an easy way to install/compile Numpy with OpenBLAS but didn\'t find an easy answer. All the documentation I have seen takes too much knowledge as granted f

3条回答
  •  甜味超标
    2020-12-14 04:11

    Consider using EasyBuild (http://hpcugent.github.io/easybuild/), an open-source framework for building and installing software.

    It allows you to (very easily) build and install (scientific) software with various compiler, and using different BLAS libraries (ATLAS, OpenBLAS, ACML, Intel MKL, ...).

    Once you install EasyBuild (pro tip: use the bootstrapping procedure described at https://github.com/hpcugent/easybuild/wiki/Bootstrapping-EasyBuild), it boils down to running a single command, something like:

    eb numpy-1.6.2-goolf-1.4.10-Python-2.7.3.eb -ldr

    This will first build and install of full compiler toolchain (goolf: GCC+OpenBLAS+OpenMPI+LAPACK+FFTW), and subsequently build Python and numpy with that toolchain. And all that while you're getting lunch. ;-)

    Disclaimer: I'm one of the EasyBuild developers.

提交回复
热议问题