halide-runtime 22.0.0__cp312-abi3-win_amd64.whl
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.
- halide/runtime/__init__.py +27 -0
- halide/runtime/_runtime.pyd +0 -0
- halide_runtime-22.0.0.dist-info/DELVEWHEEL +2 -0
- halide_runtime-22.0.0.dist-info/METADATA +64 -0
- halide_runtime-22.0.0.dist-info/RECORD +7 -0
- halide_runtime-22.0.0.dist-info/WHEEL +5 -0
- halide_runtime.libs/msvcp140-aa30f46a44704dd3d8207f5fe859b4f9.dll +0 -0
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"""Standalone Halide runtime.
|
|
2
|
+
|
|
3
|
+
Load and call precompiled Halide AOT kernels without depending on libHalide::
|
|
4
|
+
|
|
5
|
+
import halide.runtime as hlr
|
|
6
|
+
kernel = hlr.load("path/to/kernel.so")
|
|
7
|
+
kernel(input_array, output_array)
|
|
8
|
+
|
|
9
|
+
This subpackage links only the header-only Halide runtime, so it can be used in
|
|
10
|
+
deployment environments that do not have the Halide compiler installed.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# start delvewheel patch
|
|
15
|
+
def _delvewheel_patch_1_13_2():
|
|
16
|
+
import os
|
|
17
|
+
if os.path.isdir(libs_dir := os.path.abspath(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, 'halide_runtime.libs'))):
|
|
18
|
+
os.add_dll_directory(libs_dir)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
_delvewheel_patch_1_13_2()
|
|
22
|
+
del _delvewheel_patch_1_13_2
|
|
23
|
+
# end delvewheel patch
|
|
24
|
+
|
|
25
|
+
from ._runtime import Buffer, BufferDimension, Kernel, Type, load
|
|
26
|
+
|
|
27
|
+
__all__ = ["Buffer", "BufferDimension", "Kernel", "Type", "load"]
|
|
Binary file
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Version: 1.13.2
|
|
2
|
+
Arguments: ['C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-pi0n41r3\\cp312-win_amd64\\build\\venv\\Scripts\\delvewheel', 'repair', '--namespace-pkg', 'halide', '-w', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-pi0n41r3\\cp312-win_amd64\\repaired_wheel', 'C:\\Users\\runneradmin\\AppData\\Local\\Temp\\cibw-run-pi0n41r3\\cp312-win_amd64\\built_wheel\\halide_runtime-22.0.0-cp312-abi3-win_amd64.whl']
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: halide-runtime
|
|
3
|
+
Version: 22.0.0
|
|
4
|
+
Summary: Standalone Halide runtime: load and call precompiled Halide AOT kernels without depending on libHalide (no compiler, no LLVM).
|
|
5
|
+
Keywords: array,image processing,runtime,aot,halide
|
|
6
|
+
Author-Email: The Halide team <halide-dev@lists.csail.mit.edu>
|
|
7
|
+
Maintainer-Email: Alex Reinking <areinking@adobe.com>
|
|
8
|
+
License-Expression: MIT
|
|
9
|
+
Classifier: Development Status :: 5 - Production/Stable
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: Natural Language :: English
|
|
13
|
+
Classifier: Operating System :: MacOS
|
|
14
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
15
|
+
Classifier: Operating System :: POSIX
|
|
16
|
+
Classifier: Programming Language :: C++
|
|
17
|
+
Classifier: Programming Language :: Python :: 3
|
|
18
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
19
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
20
|
+
Classifier: Topic :: Multimedia :: Graphics
|
|
21
|
+
Classifier: Topic :: Scientific/Engineering
|
|
22
|
+
Classifier: Topic :: Scientific/Engineering :: Image Processing
|
|
23
|
+
Project-URL: Homepage, https://halide-lang.org
|
|
24
|
+
Project-URL: Documentation, https://github.com/halide/Halide/blob/main/doc/Python.md
|
|
25
|
+
Project-URL: Issues, https://github.com/halide/Halide/issues
|
|
26
|
+
Project-URL: Repository, https://github.com/halide/Halide.git
|
|
27
|
+
Requires-Python: >=3.12
|
|
28
|
+
Requires-Dist: numpy>=1.26
|
|
29
|
+
Description-Content-Type: text/markdown
|
|
30
|
+
|
|
31
|
+
# halide-runtime
|
|
32
|
+
|
|
33
|
+
A tiny, standalone runtime for calling **precompiled Halide AOT kernels** from
|
|
34
|
+
Python, with **no dependency on libHalide** (no compiler, no LLVM).
|
|
35
|
+
|
|
36
|
+
Requires regular, GIL-enabled CPython 3.12 or newer. The `cp312-abi3` wheels use
|
|
37
|
+
the stable Python ABI and work unchanged on newer regular CPython versions;
|
|
38
|
+
free-threaded Python is not supported.
|
|
39
|
+
|
|
40
|
+
```shell
|
|
41
|
+
pip install halide-runtime
|
|
42
|
+
uv add halide-runtime
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
```python
|
|
46
|
+
import numpy as np
|
|
47
|
+
import halide.runtime as hlr
|
|
48
|
+
|
|
49
|
+
kernel = hlr.load("mykernel.so") # dlopen a precompiled Halide artifact
|
|
50
|
+
out = np.empty_like(inp)
|
|
51
|
+
kernel(inp, out) # call it with NumPy arrays
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
This package contributes only `halide.runtime` — `hlr.load(...)`, the resulting
|
|
55
|
+
`Kernel` objects, and a lightweight `hlr.Buffer` wrapper — to the implicit
|
|
56
|
+
`halide` namespace. It is a strict subset of the full
|
|
57
|
+
[`halide`](https://pypi.org/project/halide/) package; install this one for small
|
|
58
|
+
deployment environments that run precompiled pipelines but do not need the
|
|
59
|
+
Halide compiler. Python extensions produced by
|
|
60
|
+
`add_halide_python_extension_library` also expose this package's `Kernel` type
|
|
61
|
+
and therefore require `halide-runtime` when deployed independently.
|
|
62
|
+
|
|
63
|
+
See the Halide Python docs:
|
|
64
|
+
<https://github.com/halide/Halide/blob/main/doc/Python.md>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
halide/runtime/_runtime.pyd,sha256=C7MtJ8OKoKNElAMO6SwFZME6OSaeiXtD5juZYWjOrn0,259584
|
|
2
|
+
halide/runtime/__init__.py,sha256=c3OyFy0Vt64pOrhj7HWaQP6asznK3gIXIxycsC_130Y,872
|
|
3
|
+
halide_runtime-22.0.0.dist-info/DELVEWHEEL,sha256=2nPygB-IC1WwoWVUgadwumUnN0j6DiTT8fPTy_PaY1Q,436
|
|
4
|
+
halide_runtime-22.0.0.dist-info/METADATA,sha256=07j3uWYJySZc7Nea-xqbjjxmDef57xkjoB5m7d3asko,2707
|
|
5
|
+
halide_runtime-22.0.0.dist-info/RECORD,,
|
|
6
|
+
halide_runtime-22.0.0.dist-info/WHEEL,sha256=Y1h6DI9fUdCH2EQ9zbxX8rDpVTvE5dLV5-Npqf3yG0U,104
|
|
7
|
+
halide_runtime.libs/msvcp140-aa30f46a44704dd3d8207f5fe859b4f9.dll,sha256=qjD0akRwTdPYIH9f6Fm0-awNTlPeSGsYhB_FhoJ-qUY,643440
|
|
Binary file
|