halide 19.0.0__cp39-cp39-macosx_11_0_arm64.whl → 21.0.0__cp39-cp39-macosx_11_0_arm64.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/__init__.py +10 -6
- halide/_generator_helpers.py +190 -127
- halide/bin/adams2019_retrain_cost_model +0 -0
- halide/bin/anderson2021_retrain_cost_model +0 -0
- halide/bin/gengen +0 -0
- halide/bin/get_host_target +0 -0
- halide/halide_.cpython-39-darwin.so +0 -0
- halide/imageio.py +1 -1
- halide/include/Halide.h +1775 -1477
- halide/include/HalideBuffer.h +13 -13
- halide/include/HalidePyTorchCudaHelpers.h +1 -1
- halide/include/HalideRuntime.h +35 -16
- halide/lib/cmake/Halide/FindHalide_LLVM.cmake +44 -15
- halide/lib/cmake/Halide/FindV8.cmake +0 -12
- halide/lib/cmake/Halide/Halide-shared-targets.cmake +1 -1
- halide/lib/cmake/Halide/HalideConfig.cmake +1 -1
- halide/lib/cmake/Halide/HalideConfigVersion.cmake +3 -3
- halide/lib/cmake/HalideHelpers/Halide-Interfaces.cmake +1 -0
- halide/lib/cmake/HalideHelpers/HalideGeneratorHelpers.cmake +31 -9
- halide/lib/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +3 -3
- halide/lib/cmake/Halide_Python/Halide_PythonConfigVersion.cmake +3 -3
- halide/lib/libHalide.dylib +0 -0
- halide/lib/libHalidePyStubs.a +0 -0
- halide/lib/libHalide_GenGen.a +0 -0
- halide/lib/libautoschedule_adams2019.so +0 -0
- halide/lib/libautoschedule_anderson2021.so +0 -0
- halide/lib/libautoschedule_li2018.so +0 -0
- halide/lib/libautoschedule_mullapudi2016.so +0 -0
- halide/share/doc/Halide/README.md +7 -6
- halide/share/doc/Halide/doc/BuildingHalideWithCMake.md +78 -6
- halide/share/doc/Halide/doc/HalideCMakePackage.md +9 -2
- halide/share/doc/Halide/doc/Python.md +19 -4
- halide/share/doc/Halide/doc/RunGen.md +1 -1
- {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/Halide/HalideConfig.cmake +4 -1
- {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/Halide/HalideConfigVersion.cmake +3 -3
- {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/HalideHelpers/HalideHelpersConfig.cmake +4 -1
- {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +3 -3
- halide-21.0.0.dist-info/METADATA +302 -0
- {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/RECORD +41 -41
- {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/WHEEL +1 -1
- halide-19.0.0.dist-info/METADATA +0 -301
- {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/licenses/LICENSE.txt +0 -0
halide/__init__.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
def patch_dll_dirs():
|
2
2
|
import os
|
3
|
-
|
3
|
+
|
4
|
+
if hasattr(os, "add_dll_directory"):
|
4
5
|
from pathlib import Path
|
5
|
-
|
6
|
+
|
7
|
+
bin_dir = Path(__file__).parent / "bin"
|
6
8
|
if bin_dir.exists():
|
7
9
|
os.add_dll_directory(str(bin_dir))
|
8
10
|
|
@@ -10,17 +12,19 @@ def patch_dll_dirs():
|
|
10
12
|
patch_dll_dirs()
|
11
13
|
del patch_dll_dirs
|
12
14
|
|
13
|
-
from .halide_ import *
|
14
|
-
|
15
|
-
|
15
|
+
from .halide_ import * # noqa: E402, F403
|
16
|
+
|
17
|
+
# noinspection PyUnresolvedReferences, PyProtectedMember
|
18
|
+
from .halide_ import _, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9 # noqa: E402, F401
|
16
19
|
|
17
20
|
|
18
21
|
def install_dir():
|
19
22
|
import os
|
23
|
+
|
20
24
|
return os.path.dirname(__file__)
|
21
25
|
|
22
26
|
|
23
|
-
from ._generator_helpers import (
|
27
|
+
from ._generator_helpers import ( # noqa: E402, F401
|
24
28
|
_create_python_generator,
|
25
29
|
_generatorcontext_enter,
|
26
30
|
_generatorcontext_exit,
|