@ai-ecoverse/wasix-openblas 0.0.0-stage → 0.3.28-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,117 @@
1
+ ==> LICENSE <==
2
+
3
+ Copyright (c) 2011-2014, The OpenBLAS Project
4
+ All rights reserved.
5
+
6
+ Redistribution and use in source and binary forms, with or without
7
+ modification, are permitted provided that the following conditions are
8
+ met:
9
+
10
+ 1. Redistributions of source code must retain the above copyright
11
+ notice, this list of conditions and the following disclaimer.
12
+
13
+ 2. Redistributions in binary form must reproduce the above copyright
14
+ notice, this list of conditions and the following disclaimer in
15
+ the documentation and/or other materials provided with the
16
+ distribution.
17
+ 3. Neither the name of the OpenBLAS project nor the names of
18
+ its contributors may be used to endorse or promote products
19
+ derived from this software without specific prior written
20
+ permission.
21
+
22
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
28
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
29
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
30
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
31
+ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32
+
33
+ ==> LICENSE <==
34
+
35
+ Copyright (c) 1992-2023 The University of Tennessee and The University
36
+ of Tennessee Research Foundation. All rights
37
+ reserved.
38
+ Copyright (c) 2000-2023 The University of California Berkeley. All
39
+ rights reserved.
40
+ Copyright (c) 2006-2023 The University of Colorado Denver. All rights
41
+ reserved.
42
+
43
+ $COPYRIGHT$
44
+
45
+ Additional copyrights may follow
46
+
47
+ $HEADER$
48
+
49
+ Redistribution and use in source and binary forms, with or without
50
+ modification, are permitted provided that the following conditions are
51
+ met:
52
+
53
+ - Redistributions of source code must retain the above copyright
54
+ notice, this list of conditions and the following disclaimer.
55
+
56
+ - Redistributions in binary form must reproduce the above copyright
57
+ notice, this list of conditions and the following disclaimer listed
58
+ in this license in the documentation and/or other materials
59
+ provided with the distribution.
60
+
61
+ - Neither the name of the copyright holders nor the names of its
62
+ contributors may be used to endorse or promote products derived from
63
+ this software without specific prior written permission.
64
+
65
+ The copyright holders provide no reassurances that the source code
66
+ provided does not infringe any patent, copyright, or any other
67
+ intellectual property rights of third parties. The copyright holders
68
+ disclaim any liability to any recipient for claims brought against
69
+ recipient by any third party for infringement of that parties
70
+ intellectual property rights.
71
+
72
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
73
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
74
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
75
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
76
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
77
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
78
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
79
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
80
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
81
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
82
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
83
+
84
+ ==> GotoBLAS_00License.txt <==
85
+
86
+
87
+ Copyright 2009, 2010 The University of Texas at Austin.
88
+ All rights reserved.
89
+
90
+ Redistribution and use in source and binary forms, with or without
91
+ modification, are permitted provided that the following conditions are
92
+ met:
93
+
94
+ 1. Redistributions of source code must retain the above copyright
95
+ notice, this list of conditions and the following disclaimer.
96
+
97
+ 2. Redistributions in binary form must reproduce the above copyright
98
+ notice, this list of conditions and the following disclaimer in
99
+ the documentation and/or other materials provided with the
100
+ distribution.
101
+
102
+ THIS SOFTWARE IS PROVIDED BY THE UNIVERSITY OF TEXAS AT AUSTIN ``AS IS''
103
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
104
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
105
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE UNIVERSITY OF TEXAS AT
106
+ AUSTIN OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
107
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
108
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
109
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
110
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
111
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
112
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
113
+
114
+ The views and conclusions contained in the software and documentation
115
+ are those of the authors and should not be interpreted as representing
116
+ official policies, either expressed or implied, of The University of
117
+ Texas at Austin.
package/README.md CHANGED
@@ -1,3 +1,31 @@
1
- # Temporary Holding Version
1
+ # @ai-ecoverse/wasix-openblas
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [OpenBLAS](http://www.openblas.net/) 0.3.28 compiled for wasm32-wasix by
4
+ homescoop's ladder: a **build input** (no commands) that py-numpy and
5
+ py-scipy link, fetched by sha256, so OpenBLAS is built once.
6
+
7
+ - `lib/libopenblas.a`: static and **PIC** (the ehpic tree's legacy wasm
8
+ exceptions, as numpy's and scipy's side modules; OpenBLAS is C, so the
9
+ objects carry no EH code). BLAS, CBLAS and LAPACK (OpenBLAS's C
10
+ translation of netlib, `NOFORTRAN=1`). Link it whole (`--whole-archive`)
11
+ into a side module, or let wasm-ld pull what a program needs.
12
+ - `include/`: `cblas.h`, `f77blas.h`, `openblas_config.h`.
13
+ - `lib/pkgconfig/openblas.pc` (and `blas.pc`, `lapack.pc`, `cblas.pc`), with
14
+ a prefix relative to the .pc file. meson finds it with
15
+ `-Dblas=openblas -Dlapack=openblas`. It carries
16
+ `openblas_config=USE_THREAD=0 NO_LAPACKE NO_AFFINITY RISCV64_GENERIC INT_ABI`.
17
+
18
+ Built as `TARGET=RISCV64_GENERIC BINARY=32 NOFORTRAN=1 USE_THREAD=0
19
+ NO_SHARED=1 NO_LAPACKE=1 NO_AFFINITY=1` with wasixcc on wasix-sysroot
20
+ 2025.9.30-38, after Pyodide:
21
+
22
+ - **The f2c int ABI:** every Fortran-style BLAS/LAPACK entry returns `int`, as
23
+ f2c'd code expects (`cblas_*` too). Caller and callee must agree, because
24
+ wasm-ld links a trapping stub for a signature mismatch.
25
+ - **`xerbla_`** takes `(char *, int *)` and is **weak**, as is `xerbla_array_`,
26
+ so a program's own definition wins (numpy's `python_xerbla`, scipy's
27
+ `xerbla_array_`).
28
+ - LAPACK's test-matrix generators (tmglib) aren't in the archive.
29
+
30
+ BSD-3-Clause (OpenBLAS, LAPACK) and BSD-2-Clause (GotoBLAS2); see `LICENSE`
31
+ and `THIRD-PARTY-NOTICES.md`.
@@ -0,0 +1,246 @@
1
+ # Third-party notices
2
+
3
+ libopenblas.a is OpenBLAS (BSD-3-Clause) with its C translation of netlib LAPACK (BSD-3-Clause) and GotoBLAS2 code (BSD-2-Clause); see LICENSE. It is compiled against and meant to be linked with the following.
4
+
5
+ ## wasix-libc headers (@ai-ecoverse/wasix-sysroot 2025.9.30-38; files from tag v2026-07-03.1)
6
+
7
+ ```text
8
+ wasi-libc as a whole is multi-licensed under the
9
+ Apache License v2.0 with LLVM Exceptions, the Apache License v2.0, and
10
+ the MIT License. See the LICENSE-APACHE-LLVM, LICENSE-APACHE and LICENSE-MIT
11
+ files, respectively, for details.
12
+
13
+ Portions of this software are derived from third-party works covered by
14
+ their own licenses:
15
+
16
+ dlmalloc/ - CC0; see the notice in malloc.c for details
17
+ emmalloc/ - MIT; see the notice in emmalloc.c for details
18
+ libc-bottom-half/cloudlibc/ - BSD-2-Clause; see the LICENSE file for details
19
+ libc-top-half/musl/ - MIT; see the COPYRIGHT file for details
20
+
21
+ wasi-libc changes to these files are multi-licensed under the
22
+ Apache License v2.0 with LLVM Exceptions, the Apache License v2.0,
23
+ the MIT License, and the original licenses of the third-party works.
24
+ ```
25
+
26
+ ```text
27
+ Permission is hereby granted, free of charge, to any
28
+ person obtaining a copy of this software and associated
29
+ documentation files (the "Software"), to deal in the
30
+ Software without restriction, including without
31
+ limitation the rights to use, copy, modify, merge,
32
+ publish, distribute, sublicense, and/or sell copies of
33
+ the Software, and to permit persons to whom the Software
34
+ is furnished to do so, subject to the following
35
+ conditions:
36
+
37
+ The above copyright notice and this permission notice
38
+ shall be included in all copies or substantial portions
39
+ of the Software.
40
+
41
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF
42
+ ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
43
+ TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
44
+ PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
45
+ SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
46
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
47
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
48
+ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
49
+ DEALINGS IN THE SOFTWARE.
50
+ ```
51
+
52
+ ```text
53
+ musl as a whole is licensed under the following standard MIT license:
54
+
55
+ ----------------------------------------------------------------------
56
+ Copyright © 2005-2020 Rich Felker, et al.
57
+
58
+ Permission is hereby granted, free of charge, to any person obtaining
59
+ a copy of this software and associated documentation files (the
60
+ "Software"), to deal in the Software without restriction, including
61
+ without limitation the rights to use, copy, modify, merge, publish,
62
+ distribute, sublicense, and/or sell copies of the Software, and to
63
+ permit persons to whom the Software is furnished to do so, subject to
64
+ the following conditions:
65
+
66
+ The above copyright notice and this permission notice shall be
67
+ included in all copies or substantial portions of the Software.
68
+
69
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
70
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
71
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
72
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
73
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
74
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
75
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
76
+ ----------------------------------------------------------------------
77
+
78
+ Authors/contributors include:
79
+
80
+ A. Wilcox
81
+ Ada Worcester
82
+ Alex Dowad
83
+ Alex Suykov
84
+ Alexander Monakov
85
+ Andre McCurdy
86
+ Andrew Kelley
87
+ Anthony G. Basile
88
+ Aric Belsito
89
+ Arvid Picciani
90
+ Bartosz Brachaczek
91
+ Benjamin Peterson
92
+ Bobby Bingham
93
+ Boris Brezillon
94
+ Brent Cook
95
+ Chris Spiegel
96
+ Clément Vasseur
97
+ Daniel Micay
98
+ Daniel Sabogal
99
+ Daurnimator
100
+ David Carlier
101
+ David Edelsohn
102
+ Denys Vlasenko
103
+ Dmitry Ivanov
104
+ Dmitry V. Levin
105
+ Drew DeVault
106
+ Emil Renner Berthing
107
+ Fangrui Song
108
+ Felix Fietkau
109
+ Felix Janda
110
+ Gianluca Anzolin
111
+ Hauke Mehrtens
112
+ He X
113
+ Hiltjo Posthuma
114
+ Isaac Dunham
115
+ Jaydeep Patil
116
+ Jens Gustedt
117
+ Jeremy Huntwork
118
+ Jo-Philipp Wich
119
+ Joakim Sindholt
120
+ John Spencer
121
+ Julien Ramseier
122
+ Justin Cormack
123
+ Kaarle Ritvanen
124
+ Khem Raj
125
+ Kylie McClain
126
+ Leah Neukirchen
127
+ Luca Barbato
128
+ Luka Perkov
129
+ M Farkas-Dyck (Strake)
130
+ Mahesh Bodapati
131
+ Markus Wichmann
132
+ Masanori Ogino
133
+ Michael Clark
134
+ Michael Forney
135
+ Mikhail Kremnyov
136
+ Natanael Copa
137
+ Nicholas J. Kain
138
+ orc
139
+ Pascal Cuoq
140
+ Patrick Oppenlander
141
+ Petr Hosek
142
+ Petr Skocik
143
+ Pierre Carrier
144
+ Reini Urban
145
+ Rich Felker
146
+ Richard Pennington
147
+ Ryan Fairfax
148
+ Samuel Holland
149
+ Segev Finer
150
+ Shiz
151
+ sin
152
+ Solar Designer
153
+ Stefan Kristiansson
154
+ Stefan O'Rear
155
+ Szabolcs Nagy
156
+ Timo Teräs
157
+ Trutz Behn
158
+ Valentin Ochs
159
+ Will Dietz
160
+ William Haddon
161
+ William Pitcock
162
+
163
+ Portions of this software are derived from third-party works licensed
164
+ under terms compatible with the above MIT license:
165
+
166
+ The TRE regular expression implementation (src/regex/reg* and
167
+ src/regex/tre*) is Copyright © 2001-2008 Ville Laurikari and licensed
168
+ under a 2-clause BSD license (license text in the source files). The
169
+ included version has been heavily modified by Rich Felker in 2012, in
170
+ the interests of size, simplicity, and namespace cleanliness.
171
+
172
+ Much of the math library code (src/math/* and src/complex/*) is
173
+ Copyright © 1993,2004 Sun Microsystems or
174
+ Copyright © 2003-2011 David Schultz or
175
+ Copyright © 2003-2009 Steven G. Kargl or
176
+ Copyright © 2003-2009 Bruce D. Evans or
177
+ Copyright © 2008 Stephen L. Moshier or
178
+ Copyright © 2017-2018 Arm Limited
179
+ and labelled as such in comments in the individual source files. All
180
+ have been licensed under extremely permissive terms.
181
+
182
+ The ARM memcpy code (src/string/arm/memcpy.S) is Copyright © 2008
183
+ The Android Open Source Project and is licensed under a two-clause BSD
184
+ license. It was taken from Bionic libc, used on Android.
185
+
186
+ The AArch64 memcpy and memset code (src/string/aarch64/*) are
187
+ Copyright © 1999-2019, Arm Limited.
188
+
189
+ The implementation of DES for crypt (src/crypt/crypt_des.c) is
190
+ Copyright © 1994 David Burren. It is licensed under a BSD license.
191
+
192
+ The implementation of blowfish crypt (src/crypt/crypt_blowfish.c) was
193
+ originally written by Solar Designer and placed into the public
194
+ domain. The code also comes with a fallback permissive license for use
195
+ in jurisdictions that may not recognize the public domain.
196
+
197
+ The smoothsort implementation (src/stdlib/qsort.c) is Copyright © 2011
198
+ Valentin Ochs and is licensed under an MIT-style license.
199
+
200
+ The x86_64 port was written by Nicholas J. Kain and is licensed under
201
+ the standard MIT terms.
202
+
203
+ The mips and microblaze ports were originally written by Richard
204
+ Pennington for use in the ellcc project. The original code was adapted
205
+ by Rich Felker for build system and code conventions during upstream
206
+ integration. It is licensed under the standard MIT terms.
207
+
208
+ The mips64 port was contributed by Imagination Technologies and is
209
+ licensed under the standard MIT terms.
210
+
211
+ The powerpc port was also originally written by Richard Pennington,
212
+ and later supplemented and integrated by John Spencer. It is licensed
213
+ under the standard MIT terms.
214
+
215
+ All other files which have no copyright comments are original works
216
+ produced specifically for use as part of this library, written either
217
+ by Rich Felker, the main author of the library, or by one or more
218
+ contibutors listed above. Details on authorship of individual files
219
+ can be found in the git version control history of the project. The
220
+ omission of copyright and license comments in each file is in the
221
+ interest of source tree size.
222
+
223
+ In addition, permission is hereby granted for all public header files
224
+ (include/* and arch/*/bits/*) and crt files intended to be linked into
225
+ applications (crt/*, ldso/dlstart.c, and arch/*/crt_arch.h) to omit
226
+ the copyright notice and permission notice otherwise required by the
227
+ license, and to use these files without any requirement of
228
+ attribution. These files include substantial contributions from:
229
+
230
+ Bobby Bingham
231
+ John Spencer
232
+ Nicholas J. Kain
233
+ Rich Felker
234
+ Richard Pennington
235
+ Stefan Kristiansson
236
+ Szabolcs Nagy
237
+
238
+ all of whom have explicitly granted such permission.
239
+
240
+ This file previously contained text expressing a belief that most of
241
+ the files covered by the above exception were sufficiently trivial not
242
+ to be subject to copyright, resulting in confusion over whether it
243
+ negated the permissions granted in the license. In the spirit of
244
+ permissive licensing, and of not having licensing issues being an
245
+ obstacle to adoption, that text has been removed.
246
+ ```