Upload COPYLEFT-SOURCE.md with huggingface_hub
Browse files- COPYLEFT-SOURCE.md +27 -0
COPYLEFT-SOURCE.md
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Corresponding source for the copyleft libraries in the bundled wheel
|
| 2 |
+
|
| 3 |
+
The bundled wheel links two copyleft libraries that PyTorch and the HIP runtime
|
| 4 |
+
require directly, so they cannot be left out:
|
| 5 |
+
|
| 6 |
+
| Bundled object | Package | License |
|
| 7 |
+
| --- | --- | --- |
|
| 8 |
+
| `libelf.so.1` | elfutils-libelf 0.192-6.el9_6 | GPL-2.0-or-later OR LGPL-3.0-or-later |
|
| 9 |
+
| `libdw.so.1` | elfutils-libs 0.192-6.el9_6 | GPL-2.0-or-later OR LGPL-3.0-or-later |
|
| 10 |
+
| `libnuma.so.1` | numactl-libs 2.0.19-1.el9 | LGPL-2.1 |
|
| 11 |
+
|
| 12 |
+
`libelf` is needed by `libhsa-runtime64.so`, `libdw` by `librocprofiler-sdk.so`
|
| 13 |
+
(which `libtorch_cpu.so` links against), and `libnuma` by `libc10.so`.
|
| 14 |
+
|
| 15 |
+
The corresponding source, as built for the distribution these binaries came
|
| 16 |
+
from, is published in this repository:
|
| 17 |
+
|
| 18 |
+
- `source/elfutils-0.192-6.el9_6.src.rpm`
|
| 19 |
+
sha256 `afe7c9bef952ed086637fe83ac77bfafa70bf2ba28c1d7aaa51a18c9a75146b6`
|
| 20 |
+
- `source/numactl-2.0.19-1.el9.src.rpm`
|
| 21 |
+
sha256 `df493be344a68a29145a960db9b1fff8ff8ed673338b1608f404a648ef38164c`
|
| 22 |
+
|
| 23 |
+
Both are dynamically linked, so the LGPL relinking requirement is satisfied by
|
| 24 |
+
replacing the shared object in `torch/lib/`.
|
| 25 |
+
|
| 26 |
+
License texts for these and for every other bundled library are inside the
|
| 27 |
+
wheel under `torch-*.dist-info/licenses/bundled/`.
|