cblas?

General support questions
Post Reply
kjearns
Posts: 3
Joined: 2014/09/19 20:13:18

cblas?

Post by kjearns » 2014/09/19 20:17:47

I'm trying to compile some software that links against cblas. I've installed blas, blas-devel, atlas and atlas-devl with yum but none of these packages include cblas. Googling about where to get cblas for centos returns lots of results saying that cblas should come with atlas in centos 6, but it does not appear to do so in centos 7. How do I install cblas on centos 7?

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: cblas?

Post by gerald_clark » 2014/09/19 21:00:16

cblas.h is part of atlas-devel.
The docs are in /usr/share/doc/atlas-devel*

kjearns
Posts: 3
Joined: 2014/09/19 20:13:18

Re: cblas?

Post by kjearns » 2014/09/19 21:20:25

You are correct, I have cblas.h in /usr/include, however I do not seem to have a libcblas.so anywhere on my system. The software I am trying to compile specifies -lcblas explicitly to the linker, which complains that cblas cannot be found. I have tried removing this and linking against libatlas.so only, but predictibly the linker complains about undefined symbols for the cblas_* functions. Is there a different library I should link against to get these symbols?

chemal
Posts: 776
Joined: 2013/12/08 19:44:49

Re: cblas?

Post by chemal » 2014/09/19 22:24:20

Names and content of atlas libraries have changed recently. Try

-L/usr/lib64/atlas -lsatlas or -L/usr/lib64/atlas -ltatlas

instead of

-lcblas.

IIRC 's' means single- and 't' multi-threaded.

kjearns
Posts: 3
Joined: 2014/09/19 20:13:18

Re: cblas?

Post by kjearns » 2014/09/19 22:53:34

Thank you this seems to have solved my problem. Thanks.

Post Reply