Openblas Compilation method (experience using MinGW under Msys)

Source: Internet
Author: User

Openblas is an optimized Blas library based on the GotoBlas21.13 BSD version, with the following installation steps:

Install under Windows:

1. Download the latest Openblas library in Sourgeforge: http://sourceforge.net/projects/openblas/files/

2. Unzip the downloaded source to the working directory, for example: E:\VMwareSharedFolder\OpenBLAS

3. Based on Openblas's instructions on GitHub "Howto use Openblas in Microsoft Visual Studio", download MinGW, launch Mysys Shell, check the version of GCC, If less than 4.7, then upgrade, or directly compiled, the command is as follows:

Gcc–v:: View the GCC version number

Mingw-get REMOVEGCC:: Uninstalling GCC

Mingw-get UPDATEGCC:: Update gcc

Mingw-getupgrade gcc:: Upgrade gcc

4. Ensure that the GCC version is above 4.7, enter the Openblas directory in the Mysys shell, enter make to start compiling, Openblas automatically detects the compiler and CPU:

5. After compiling, in the Openblas directory, there will be LIBOPENBLAS.A and libopenblas.dll two files, install a command to install the compiled Openblas library into the system:

[Plain]View Plaincopy
    1. Make Prefix=/c/warmerda/openblas Install


6. After installation, the include and Lib two directories appear in the C:\warmerda\OpenBLAS directory, including the header file of the library. Lib directory is libopenblas.a and libopenblas.dll two files, wherein LIBOPENBLAS.A is MinGW lib library file, Libopenblas.dll is the dynamic library file of Windows, currently we only have dynamic library, there is no Lib file, so we need to For further processing, the Lib file that generated windows can be used. In the next file, I will explain how to generate a Lib file from a DLL file and see the Lib library file generated by the dynamic library file DLL.

http://blog.csdn.net/giselite/article/details/32094701

Openblas Compilation method (experience using MinGW under Msys)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.