OpenBLAS: Windows binary package missing openblas .lib file
The instructions to build a “.lib” file requires a “.def” file. The def file requires the user to download the source and have (among many other things) a working Perl installation and more. It would be very convenient for the users if the lib file was shipped together with the dll and header files.
EDIT: This used to be the case, as in OpenBLAS v0.2.8 from 2013 which included:
libopenblas.a
libopenblas.def
libopenblas.dll
libopenblas.exp
libopenblas.lib
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 2
- Comments: 17
OK, next attempt. Hope this is actually usable: openblas036-win64.zip
Can i opened a new issue ? Question 1 : Can you describe in easy way step by step? Question 2 : Could you pointed what wrong what i do, in below ? Question 3 : In Xianyi precompiled installation packages: https://github.com/xianyi/OpenBLAS/wiki/Precompiled-installation-packages a. The windows at sourceforge cannot be linked with VS. It need libgfortran-3.dll that not included (that is from mingW32 right? its not available on mingw-64? got the file. forrtl: severe (157): Program Exception - access violation
Comment 1: The best precompiled package openBlas is here for Windows VS: Using VS GUI: just add “libopenblas.lib” into source Using command line: ifort source.f90 libopenblas.dll.a /O3 /QxCORE-AVX2 where the libopenblas.dll should be needed for run the compiled one.
Attachment for Question 2: I followed the https://github.com/xianyi/OpenBLAS/wiki/How-to-use-OpenBLAS-in-Microsoft-Visual-Studio for create the lib for VS2019 x64 community. A. Native
anaconda powershell or windows powershell ? pressumed windows powershell since anaconda already got cmake itself, so the installed cmake for windows not anaconda. cmake -G “Visual Studio 14 Win64” -DCMAKE_BUILD_TYPE=Release . this is run on openblas source folder ?? looks cant run. i mad another folder, build2 cmake … -G “Visual Studio 15 Win64” at folder build 2. then got some VS2017 project.
i cant link with my source for testing inverse matrix: test_fpu3.f90 test_fpu3.f90 https://www.mediafire.com/file/oi966842pbdemt9/test_fpu3.f90/file that calls Lapack Blas3 DGETRI; DGFTRF,ILAENV ifort test_fpu2.f90 /O3 /OxCORE-AVX2 openblas.lib /link /stack:64000000 it fails to call the Lapack.
B. MingW-64 B.I MingW-64 Version
B.II Msys2 MingW-64
Closing as the new 0.3.6 and 0.3.7 packages are now on the sourceforge page as well.
I have uploaded the win64 build of 0.3.7 and a rebuilt package of 0.3.6 to the github releases page now, will ask xianyi to upload them to his openblas project account on sf.net as well. (I decided to rebuild 0.3.6 as my previous attempt had Haswell as minimum target by mistake. Both new packages are still DYNAMIC_ARCH and now use TARGET=CORE2 for the common functions)
Sorry, actually did not realize that it was a 32bit lib I had lying around. Will update my cross-compilation to x64 and upload a 64bit of 0.3.6 later today or tomorrow…
That binary on NuGet is seriously outdated, could you please try if the attached package works for you ? (it is not exactly current either, this happens to be the result of a cross-compilation test that I did on a Linux system a while ago, and already had the .def file that is needed by lib.exe to create the .lib. If this works, I’ll see if I can get the OpenBLAS uploads to sf.net updated again) openblas035.zip