c++ armadillo with openblas on windows 8

919 views
Skip to first unread message

jean pierre

unread,
Dec 14, 2013, 7:39:46 AM12/14/13
to openbla...@googlegroups.com

I am trying to install and use Armadillo with OpenBlas on Windows8 / Visual Studio.

I managed to install Armadillo and run a small program without problem. However it is using the default supplied-with-Armadillo 32 bit LAPACK and BLAS binaries which are too slow. I witnessed on linux that the speed improvement when using OpenBlas (compared to default Armadillo or BLAS) is huge when multiplying large matrices and would like to be able to use it on Win8 as well.

When I try to replace BLAS lib with OpenBlas from OpenBLAS-v0.2.8-x86_64-Win.zip (found here: http://sourceforge.net/projects/openblas/files/v0.2.8/) and try to link with libopenblas.lib, I get a lot of blas-related unresolved external (again, not the case when I link with the armadillo supplied blas_win32_MT.lib) and really have no idea how to solve the problem.

Any help much appreciated.

JPN

Zhang Xianyi

unread,
Dec 14, 2013, 8:04:45 AM12/14/13
to jean pierre, openbla...@googlegroups.com
Hi JPN,

I think you linked 32-bit Armadillo with 64-bit OpenBLAS.

 
Thank you

Xianyi


2013/12/14 jean pierre <jeanpierr...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "OpenBLAS-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openblas-user...@googlegroups.com.
To post to this group, send email to openbla...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Message has been deleted

jean pierre

unread,
Dec 14, 2013, 11:33:20 AM12/14/13
to openbla...@googlegroups.com, jean pierre

Thanks a lot for your prompt reply!

Indeed the linking works with the 32 bit version of openBLAS, however at run time I get an error about missing libgfortran-3.dll and I don't know what this dll is or where I should get it from.

Besides, armadillo states everywhere that the performance will be better with a 64 bit replacement to BLAS, so I would like to use openBLAS 64 bit. What do you mean "you linked 32-bit Armadillo" ? It's header only library.

JPN

Zhang Xianyi

unread,
Dec 14, 2013, 8:28:03 PM12/14/13
to jean pierre, openbla...@googlegroups.com
Hi JPN,

I think you need install ming-win to obtain libgfortran-3.dll and others.

Please configure your visual studio with x86_64 build.

Xianyi


2013/12/15 jean pierre <jeanpierr...@gmail.com>

jean pierre

unread,
Dec 15, 2013, 8:22:14 AM12/15/13
to openbla...@googlegroups.com, jean pierre

OK got missing dll + 2 others from http://www.mingw.org/wiki/InstallationHOWTOforMinGW.
It's linking and working fine on 32 bit, not yet on 64 but I will get there...

Thanks a lot for your help!

JPN
Reply all
Reply to author
Forward
0 new messages