Blas and Lapack C interface

Post here if you have a question about the installation process

Blas and Lapack C interface

Postby martinv » Mon Aug 19, 2013 8:02 am


is there some package that provides netlib blas and lapack together with their C interfaces? Lapacke is very nice, but I would like to have Lapacke and Cblas in one, preferably as shared libraries ...

If such a package is not available, I'll just do with separate compilation of Lapacke and Cblas. However, the makefile provided in the Cblas package generates only a static library. Could someone please provide an example how to compile Cblas as a static lib?

Thank you very much,

Martin Vymazal
Posts: 4
Joined: Mon May 30, 2011 5:42 pm

Re: Blas and Lapack C interface

Postby admin » Mon Aug 04, 2014 6:26 pm

You can get LAPACKE shared library by enable the SHARED library option on CMAKE.

Here is the way to generate a SHARED library ... x-gcc.html

So just hack the, Makefile to change the name to your library
Here is how it was done on LAPACK - viewtopic.php?f=7&t=908

Hope it helps
Site Admin
Posts: 616
Joined: Wed Dec 08, 2004 7:07 pm

Return to Installation

Who is online

Users browsing this forum: No registered users and 2 guests