1 |
Hi Francois |
2 |
Thanks for your reply. |
3 |
|
4 |
I already had eselect from the science overlay: version 1.3.7-r100[1] ([1] |
5 |
refers to the science overlay) |
6 |
and eselect-blas, eselect-cblas and eselect-lapack were already removed (i |
7 |
had to do this to emerge atlas). |
8 |
|
9 |
Now I unmasked and emerged the virtuals cblas, blas and lapack from the |
10 |
science overlay. |
11 |
|
12 |
when i look at the lib64 directory, i see |
13 |
aim-octopus ~ # ls -l /usr/lib64/liblapack.* |
14 |
lrwxrwxrwx 1 root root 28 Aug 20 09:43 /usr/lib64/liblapack.a -> |
15 |
lapack/reference/liblapack.a |
16 |
lrwxrwxrwx 1 root root 29 Aug 20 09:43 /usr/lib64/liblapack.so -> |
17 |
lapack/reference/liblapack.so |
18 |
lrwxrwxrwx 1 root root 31 Aug 20 09:43 /usr/lib64/liblapack.so.0 -> |
19 |
lapack/reference/liblapack.so.0 |
20 |
aim-octopus ~ # ls -l /usr/lib64/libcblas.* |
21 |
lrwxrwxrwx 1 root root 13 Aug 20 10:54 /usr/lib64/libcblas.a -> |
22 |
libgslcblas.a |
23 |
lrwxrwxrwx 1 root root 14 Aug 20 10:54 /usr/lib64/libcblas.so -> |
24 |
libgslcblas.so |
25 |
lrwxrwxrwx 1 root root 16 Aug 20 10:54 /usr/lib64/libcblas.so.0 -> |
26 |
libgslcblas.so.0 |
27 |
aim-octopus ~ # ls -l /usr/lib64/libblas.* |
28 |
lrwxrwxrwx 1 root root 24 Aug 19 18:07 /usr/lib64/libblas.a -> |
29 |
blas/reference/libblas.a |
30 |
lrwxrwxrwx 1 root root 25 Aug 19 18:07 /usr/lib64/libblas.so -> |
31 |
blas/reference/libblas.so |
32 |
lrwxrwxrwx 1 root root 27 Aug 19 18:07 /usr/lib64/libblas.so.0 -> |
33 |
blas/reference/libblas.so.0 |
34 |
|
35 |
I found .pc files in /usr/lib64/blas/reference/ and |
36 |
/usr/lib64/lapack/reference/ but there is no directory |
37 |
/usr/lib64/cblas/reference. How can i get the cblas from the science |
38 |
overlay? |
39 |
|
40 |
I noticed that i have sci-libs/*-reference for blas and lapack emerged |
41 |
(even though none of them are from the science overlay) but no |
42 |
sci-libs/cblas-reference: |
43 |
aim-octopus ~ # eix blas-reference |
44 |
[I] sci-libs/blas-reference |
45 |
Available versions: 20070226 ~20070226-r2 **20070226-r3 ~20120925[1] |
46 |
**99999999[1] {{doc static-libs test}} |
47 |
Installed versions: 20070226(18:07:30 08/19/13)(-doc) |
48 |
Homepage: http://www.netlib.org/lapack/ |
49 |
Description: Reference implementation of BLAS |
50 |
|
51 |
aim-octopus ~ # eix lapack-reference |
52 |
[I] sci-libs/lapack-reference |
53 |
Available versions: 3.1.1-r1 ~3.2.1-r1 **3.2.1-r3 ~3.4.2[1] **9999[1] |
54 |
{{doc static-libs test xblas}} |
55 |
Installed versions: 3.1.1-r1(09:43:40 08/20/13)(-doc) |
56 |
Homepage: http://www.netlib.org/lapack/ |
57 |
Description: Reference implementation of LAPACK |
58 |
|
59 |
[1] "science" /var/lib/layman/science |
60 |
|
61 |
aim-octopus ~ # eix cblas-reference |
62 |
* sci-libs/cblas-reference |
63 |
Available versions: 20030223-r4 ~20030223-r5 ~20110218[1] |
64 |
{{static-libs}} |
65 |
Homepage: http://www.netlib.org/blas/ |
66 |
Description: C wrapper interface to the F77 reference BLAS |
67 |
implementation |
68 |
|
69 |
[1] "science" /var/lib/layman/science |
70 |
|
71 |
|
72 |
Do i need to emerge sci-libs/cblas-reference? |
73 |
Do i need to unmask and emerge the overlay versions for all |
74 |
sci-libs/*-reference as well? |
75 |
|
76 |
|
77 |
I am sorry, but i don't understand what you said about the .pc files. |
78 |
In what situation and how should i use the .pc file? |
79 |
|
80 |
Thanks |
81 |
Jody |
82 |
|
83 |
|
84 |
|
85 |
On Tue, Sep 3, 2013 at 12:57 AM, François Bissey <fbissey@××××××××××××.nz>wrote: |
86 |
|
87 |
> Hi Jody, |
88 |
> |
89 |
> The mechanism for handling multiple BLAS/LAPACK in the science overlay |
90 |
> is incompatible with the one used in the main tree. |
91 |
> In particular the science overlay stack doesn't create link link to |
92 |
> libcblas, |
93 |
> libblas and liblapack. |
94 |
> You have to unmask eselect from the science overlay as well as the virtuals |
95 |
> (cblas,blas and lapack) and remove all the tree eselect-blas, eselect-cblas |
96 |
> and eselect-lapack modules. |
97 |
> No packages in Gentoo, in the tree or the overlay, should use libblas, |
98 |
> libcblas or |
99 |
> liblapack directly but configure it throught pkg-config. |
100 |
> All BLAS/LAPACK implementation in Gentoo provide .pc file for that |
101 |
> purpose. With |
102 |
> the new science overlay structure you create a link for which .pc file is |
103 |
> the default. |
104 |
> |
105 |
> So once you have completed your move to the science overlay stack you need |
106 |
> to remove |
107 |
> those links if they still exist. |
108 |
> |
109 |
> Francois |
110 |
> |
111 |
> |
112 |
> On 2013-09-02 19:04, jody wrote: |
113 |
> |
114 |
>> Hi |
115 |
>> I have successfully installed sci-libs/atlas from the science overlay. |
116 |
>> |
117 |
>> Now there are some points which are somewhat unclear. |
118 |
>> |
119 |
>> I have been redirected here from the gentoo forum. |
120 |
>> |
121 |
>> 1. cblas implementation |
122 |
>> Even though |
123 |
>> |
124 |
>> # eselect cblas list |
125 |
>> Available providers for cblas: |
126 |
>> [1] atlas * |
127 |
>> [2] atlas-threads |
128 |
>> |
129 |
>> all cblas libraries are pointing to gsl implementations: |
130 |
>> |
131 |
>> ls -l /usr/lib64/libcblas.* |
132 |
>> lrwxrwxrwx 1 root root 13 Aug 20 10:54 /usr/lib64/libcblas.a -> |
133 |
>> libgslcblas.a |
134 |
>> lrwxrwxrwx 1 root root 14 Aug 20 10:54 /usr/lib64/libcblas.so -> |
135 |
>> libgslcblas.so |
136 |
>> lrwxrwxrwx 1 root root 16 Aug 20 10:54 /usr/lib64/libcblas.so.0 -> |
137 |
>> libgslcblas.so.0 |
138 |
>> |
139 |
>> Shouldn't the '/usr/lib64/libcblas.so' point to |
140 |
>> '/usr/lib64/libatlcblas.so' etc.? |
141 |
>> |
142 |
>> 2. static libs for cblas |
143 |
>> The installation of sci-libs/atlas did not create any static libs: |
144 |
>> |
145 |
>> ls -l /usr/lib64/libatl* |
146 |
>> lrwxrwxrwx 1 root root 13 Aug 22 09:11 /usr/lib64/libatlas.so |
147 |
>> -> libatlas.so.3 |
148 |
>> -rwxr-xr-x 1 root root 5961968 Aug 22 09:11 /usr/lib64/libatlas.so.3 |
149 |
>> lrwxrwxrwx 1 root root 16 Aug 22 09:11 |
150 |
>> /usr/lib64/libatlcblas.so -> libatlcblas.so.3 |
151 |
>> -rwxr-xr-x 1 root root 142504 Aug 22 09:11 |
152 |
>> /usr/lib64/libatlcblas.so.3 |
153 |
>> |
154 |
>> And i have at least one 3rd party code which requires the cblas |
155 |
>> libraries to be linked statically. |
156 |
>> |
157 |
>> 3. eselect lapack |
158 |
>> I found that 'app-admin/eselect-lapack' is blocking 'sci-libs/atlas', |
159 |
>> |
160 |
>> but atlas did not pull in eselect for lapack: |
161 |
>> |
162 |
>> # eselect lapack list |
163 |
>> !!! Error: Can't load module lapack |
164 |
>> exiting |
165 |
>> |
166 |
>> eselect-cblas is also blocking 'sci-libs/atlas', but apparently atlas |
167 |
>> pulls in eselect for cblas. |
168 |
>> |
169 |
>> 4. Shouldn't there also be a lapack implementation from atlas? |
170 |
>> |
171 |
>> Could somebody clarify or help out? |
172 |
>> Jody |
173 |
>> |
174 |
> |
175 |
> |