-
-
Notifications
You must be signed in to change notification settings - Fork 12
/
meta.yaml
286 lines (271 loc) · 10.4 KB
/
meta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
{% set version = "3.11.0" %}
# if build_num is reset to 0 (for new version), update increment for blas_minor below
{% set build_num = 3 %}
{% set version_major = version.split(".")[0] %}
# blas_major denotes major infrastructural change to how blas is managed
{% set blas_major = "2" %}
# make sure we do not create colliding version strings of output "blas"
# for builds across lapack-versions within the same blas_major
{% set blas_minor = build_num + 200 %}
{% if unix %}
{% set library = "" %}
{% else %}
{% set library = "Library/" %}
{% endif %}
package:
name: blas-split
version: {{ version }}
source:
url: https://github.com/Reference-LAPACK/lapack/archive/v{{ version }}.tar.gz
sha256: 4b9ba79bfd4921ca820e83979db76ab3363155709444a787979e81c22285ffa9
patches:
# Avoid setting current_version and compatibility_version
- patches/0001-Avoid-setting-current_version-and-compatibility_vers.patch # [osx]
build:
number: {{ build_num }}
requirements:
build:
- {{ compiler("c") }} # [unix]
- {{ stdlib("c") }} # [unix]
- {{ compiler("fortran") }} # [unix]
- {{ compiler("m2w64_c") }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler("m2w64_fortran") }} # [win]
# This is just for creating the import libaries
- vs2019_win-64 # [win64]
- ninja # [win]
- make # [unix]
- cmake
outputs:
- name: libblas
build:
string: {{ build_num }}_h{{ PKG_HASH }}_netlib
track_features:
# netlib variants must have at least 1 more feature
# than all variants of non-netlib blas implementations
- blas_netlib
- blas_netlib_2
run_exports:
- {{ pin_subpackage("libblas", max_pin="x") }}
requirements:
build:
- {{ compiler("c") }} # [unix]
- {{ stdlib("c") }} # [unix]
- {{ compiler("fortran") }} # [unix]
- {{ compiler("m2w64_c") }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler("m2w64_fortran") }} # [win]
run_constrained:
- blas * netlib
files:
- {{ library }}lib/pkgconfig/blas.pc
- lib/libblas.so # [linux]
- lib/libblas.so.{{ version_major }} # [linux]
- lib/libblas.so.{{ version }} # [linux]
- lib/libblas.dylib # [osx]
- lib/libblas.{{ version_major }}.dylib # [osx]
- lib/libblas.{{ version }}.dylib # [osx]
- Library/bin/libblas.dll # [win]
- Library/lib/blas.lib # [win]
- Library/lib/libblas.dll.a # [win]
test:
commands:
- echo "no need to revalidate `files:` specification"
- name: libtmglib
build:
string: {{ build_num }}_h{{ PKG_HASH }}_netlib
track_features:
- blas_netlib
- blas_netlib_2
run_exports:
- {{ pin_subpackage("libtmglib", max_pin="x") }}
requirements:
build:
- {{ compiler("c") }} # [unix]
- {{ stdlib("c") }} # [unix]
- {{ compiler("fortran") }} # [unix]
- {{ compiler("m2w64_c") }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler("m2w64_fortran") }} # [win]
run_constrained:
- blas * netlib
files:
- lib/libtmglib.so # [linux]
- lib/libtmglib.so.{{ version_major }} # [linux]
- lib/libtmglib.so.{{ version }} # [linux]
- lib/libtmglib.dylib # [osx]
- lib/libtmglib.{{ version_major }}.dylib # [osx]
- lib/libtmglib.{{ version }}.dylib # [osx]
- Library/bin/libtmglib.dll # [win]
- Library/lib/libtmglib.dll.a # [win]
test:
commands:
- echo "no need to revalidate `files:` specification"
- name: libcblas
build:
string: {{ build_num }}_h{{ PKG_HASH }}_netlib
track_features:
- blas_netlib
- blas_netlib_2
run_exports:
- {{ pin_subpackage("libcblas", max_pin="x") }}
requirements:
build:
- {{ compiler("c") }} # [unix]
- {{ stdlib("c") }} # [unix]
- {{ compiler("fortran") }} # [unix]
- {{ compiler("m2w64_c") }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler("m2w64_fortran") }} # [win]
run:
- libblas {{ version }}
files:
- {{ library }}include/cblas*.h
- {{ library }}lib/pkgconfig/cblas.pc
- {{ library }}lib/cmake/cblas-{{ version }}/*.cmake
- lib/libcblas.so # [linux]
- lib/libcblas.so.{{ version_major }} # [linux]
- lib/libcblas.so.{{ version }} # [linux]
- lib/libcblas.dylib # [osx]
- lib/libcblas.{{ version_major }}.dylib # [osx]
- lib/libcblas.{{ version }}.dylib # [osx]
- Library/bin/libcblas.dll # [win]
- Library/lib/cblas.lib # [win]
- Library/lib/libcblas.dll.a # [win]
test:
commands:
- echo "no need to revalidate `files:` specification"
- name: liblapack
build:
string: {{ build_num }}_h{{ PKG_HASH }}_netlib
track_features:
- blas_netlib
- blas_netlib_2
run_exports:
- {{ pin_subpackage("liblapack", max_pin="x") }}
requirements:
build:
- {{ compiler("c") }} # [unix]
- {{ stdlib("c") }} # [unix]
- {{ compiler("fortran") }} # [unix]
- {{ compiler("m2w64_c") }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler("m2w64_fortran") }} # [win]
run:
- libblas {{ version }}
files:
- {{ library }}lib/pkgconfig/lapack.pc
- {{ library }}lib/cmake/lapack-{{ version }}/*.cmake
- lib/liblapack.so # [linux]
- lib/liblapack.so.{{ version_major }} # [linux]
- lib/liblapack.so.{{ version }} # [linux]
- lib/liblapack.dylib # [osx]
- lib/liblapack.{{ version_major }}.dylib # [osx]
- lib/liblapack.{{ version }}.dylib # [osx]
- Library/bin/liblapack.dll # [win]
- Library/lib/lapack.lib # [win]
- Library/lib/liblapack.dll.a # [win]
test:
commands:
- echo "no need to revalidate `files:` specification"
- name: liblapacke
build:
string: {{ build_num }}_h{{ PKG_HASH }}_netlib
track_features:
- blas_netlib
- blas_netlib_2
run_exports:
- {{ pin_subpackage("liblapacke", max_pin="x") }}
requirements:
build:
- {{ compiler("c") }} # [unix]
- {{ stdlib("c") }} # [unix]
- {{ compiler("fortran") }} # [unix]
- {{ compiler("m2w64_c") }} # [win]
- {{ stdlib("m2w64_c") }} # [win]
- {{ compiler("m2w64_fortran") }} # [win]
run:
- libblas {{ version }}
- libcblas {{ version }}
- liblapack {{ version }}
files:
- {{ library }}include/lapack*.h
- {{ library }}lib/pkgconfig/lapacke.pc
- {{ library }}lib/cmake/lapacke-{{ version }}/*.cmake
- lib/liblapacke.so # [linux]
- lib/liblapacke.so.{{ version_major }} # [linux]
- lib/liblapacke.so.{{ version }} # [linux]
- lib/liblapacke.dylib # [osx]
- lib/liblapacke.{{ version_major }}.dylib # [osx]
- lib/liblapacke.{{ version }}.dylib # [osx]
- Library/bin/liblapacke.dll # [win]
- Library/lib/lapacke.lib # [win]
- Library/lib/liblapacke.dll.a # [win]
test:
commands:
- echo "no need to revalidate `files:` specification"
- name: blas-devel
build:
string: {{ build_num }}_netlib
track_features:
- blas_netlib
- blas_netlib_2
requirements:
run:
- {{ pin_subpackage("libblas", exact=True) }}
- {{ pin_subpackage("libcblas", exact=True) }}
- {{ pin_subpackage("liblapack", exact=True) }}
- {{ pin_subpackage("liblapacke", exact=True) }}
test:
commands:
- echo "pure meta-package"
# For conda-forge blas selector, see also blas-feedstock
- name: blas
version: {{ blas_major }}.{{ blas_minor }}
build:
string: netlib
track_features:
- blas_netlib
- blas_netlib_2
requirements:
- {{ pin_subpackage("liblapack", exact=True) }}
- {{ pin_subpackage("liblapacke", exact=True) }}
- {{ pin_subpackage("libcblas", exact=True) }}
- {{ pin_subpackage("libblas", exact=True) }}
- {{ pin_subpackage("blas-devel", exact=True) }}
- {{ pin_subpackage("libtmglib", exact=True) }}
test:
commands:
{% for each_lib in ['blas', 'cblas', 'lapack', 'lapacke'] %}
- test -f $PREFIX/lib/lib{{ each_lib }}.so # [linux]
- test -f $PREFIX/lib/lib{{ each_lib }}.so.{{ version_major }} # [linux]
- test -f $PREFIX/lib/lib{{ each_lib }}.so.{{ version }} # [linux]
- test -f $PREFIX/lib/lib{{ each_lib }}.dylib # [osx]
- test -f $PREFIX/lib/lib{{ each_lib }}.{{ version_major }}.dylib # [osx]
- test -f $PREFIX/lib/lib{{ each_lib }}.{{ version }}.dylib # [osx]
- test -f $PREFIX/lib/pkgconfig/{{ each_lib }}.pc # [unix]
- if not exist "%LIBRARY_LIB%\\pkgconfig\\{{ each_lib }}.pc" exit 1 # [win]
- if not exist "%LIBRARY_LIB%\\{{ each_lib }}.lib" exit 1 # [win]
- if not exist "%LIBRARY_BIN%\\lib{{ each_lib }}.dll" exit 1 # [win]
{% endfor %}
# For compatiblity (see #33)
- name: lapack
build:
string: netlib
requirements:
run:
- liblapack {{ version }}
test:
commands:
- echo "pure meta-package"
about:
home: http://www.netlib.org/lapack
license: BSD-3-Clause
license_file: LICENSE
summary: Linear Algebra PACKage
extra:
feedstock-name: lapack
recipe-maintainers:
- jakirkham
- isuruf
- h-vetinari