Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45189 - Is scilab using atlas?
Summary: Is scilab using atlas?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-19 22:29 UTC by gunix
Modified: 2005-09-05 00:49 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
scilab-2.7-r3-2.7-r4.diff (scilab-2.7-r3-2.7-r4.diff,1.36 KB, patch)
2004-03-23 08:59 UTC, Gregorio Guidi (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description gunix 2004-03-19 22:29:55 UTC
I have scilab and atlas installed, but I noticed that scilab didn't require atlas when I installed it. I think it would be good if scilab used atlas.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-03-23 08:59:11 UTC
Created attachment 27858 [details, diff]
scilab-2.7-r3-2.7-r4.diff

This an attempt at providing support for atlas, give it a try.

NOTE: I slightly abused the 'atlas' use flag, whose description is:
"Adds support for atlas instead of blas in dev-lang/R"
other solutions could be found, or at aleast the description could be modified.

While I was at it, I modified the test to see if previous version of scilab are
installed. The great majority of users should be at 2.7-r2, so this hopefully
avoids unnecessary unmerges for them.
Comment 2 Gregorio Guidi (RETIRED) gentoo-dev 2004-06-30 06:53:50 UTC
With the virtual/blas, virtual/lapack introduction, I guess the atlas use flag is going away (used only by dev-lang/R, and can be substituted by virtual/blas there).

So this bug must be rethought.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2005-01-03 12:55:24 UTC
You are free to install sci-libs/blas-atlas as your source of BLAS.
You also can use other implementations of BLAS such as sci-libs/acml
or sci-libs/blas-reference.

To select the library to use among those installed see blas-config.
Comment 4 gunix 2005-01-13 14:55:54 UTC
Just a silly question, how can I see that atlas is used?

$ blas-config  -p

Current profiles:
F77 BLAS: /usr/lib/blas/f77-ATLAS
C BLAS: /usr/lib/blas/c-ATLAS

and when emerging lapack-atlas I'm told that:
" To link with ATLAS LAPACK from C or Fortran, simply use:
 * -llapack"

$ emerge -Dpv scilab    
tells me:
[ebuild   R   ] sci-mathematics/scilab-3.0  +Xaw3d +atlas -gtk -gtk2 -ifc +tcltk 0 kB 
so atlas should be used.

But in the emerge log I only see:

--with-atlas-library=/usr/lib

that's the only mentioning of atlas.

Lapack is mentioned a few times, but then it looks like this:

    making all in routines/lapack...    
    ...
    g77 -O  -c -o ztgsy2.o ztgsy2.f
    ...
    Creation of ../../libs/lapack.a

and that doesn't seem right. Is it using it's own lapack routines?


The last time I find lapack mentioned, is here:

make[1]: Entering directory `/var/tmp/portage/scilab-3.0/work/scilab-3.0/examples/interface-lapack'
rm -f *.o lapackscilab.a

Is it removing it? But this is the only mention of this library, lapackscilab.a.

I'm confused
Comment 5 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-26 10:55:02 UTC
Unfortunately, scilab is a special case: it has its own implementation of 
blas/lapack, and if compiled with --with-atlas-library=/usr/lib tries to link
statically against /usr/lib/liblapack.a, /usr/lib/libcblas.a,
/usr/lib/libf77blas.a, /usr/lib/libatlas.a

So, it does not work currently in the virtual/blas virtual/lapack setup.
Comment 6 Peter Bienstman (RETIRED) gentoo-dev 2005-09-05 00:49:04 UTC
scilab.3.1.1-r1 now uses the new lapack infrastructure, and can switch between 
atlas or other lapack implementations after compile time.