halide 19.0.0__cp39-cp39-macosx_11_0_x86_64.whl → 21.0.0__cp39-cp39-macosx_11_0_x86_64.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.
Files changed (42) hide show
  1. halide/__init__.py +10 -6
  2. halide/_generator_helpers.py +190 -127
  3. halide/bin/adams2019_retrain_cost_model +0 -0
  4. halide/bin/anderson2021_retrain_cost_model +0 -0
  5. halide/bin/gengen +0 -0
  6. halide/bin/get_host_target +0 -0
  7. halide/halide_.cpython-39-darwin.so +0 -0
  8. halide/imageio.py +1 -1
  9. halide/include/Halide.h +1775 -1477
  10. halide/include/HalideBuffer.h +13 -13
  11. halide/include/HalidePyTorchCudaHelpers.h +1 -1
  12. halide/include/HalideRuntime.h +35 -16
  13. halide/lib/cmake/Halide/FindHalide_LLVM.cmake +44 -15
  14. halide/lib/cmake/Halide/FindV8.cmake +0 -12
  15. halide/lib/cmake/Halide/Halide-shared-targets.cmake +1 -1
  16. halide/lib/cmake/Halide/HalideConfig.cmake +1 -1
  17. halide/lib/cmake/Halide/HalideConfigVersion.cmake +3 -3
  18. halide/lib/cmake/HalideHelpers/Halide-Interfaces.cmake +1 -0
  19. halide/lib/cmake/HalideHelpers/HalideGeneratorHelpers.cmake +31 -9
  20. halide/lib/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +3 -3
  21. halide/lib/cmake/Halide_Python/Halide_PythonConfigVersion.cmake +3 -3
  22. halide/lib/libHalide.dylib +0 -0
  23. halide/lib/libHalidePyStubs.a +0 -0
  24. halide/lib/libHalide_GenGen.a +0 -0
  25. halide/lib/libautoschedule_adams2019.so +0 -0
  26. halide/lib/libautoschedule_anderson2021.so +0 -0
  27. halide/lib/libautoschedule_li2018.so +0 -0
  28. halide/lib/libautoschedule_mullapudi2016.so +0 -0
  29. halide/share/doc/Halide/README.md +7 -6
  30. halide/share/doc/Halide/doc/BuildingHalideWithCMake.md +78 -6
  31. halide/share/doc/Halide/doc/HalideCMakePackage.md +9 -2
  32. halide/share/doc/Halide/doc/Python.md +19 -4
  33. halide/share/doc/Halide/doc/RunGen.md +1 -1
  34. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/Halide/HalideConfig.cmake +4 -1
  35. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/Halide/HalideConfigVersion.cmake +3 -3
  36. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/HalideHelpers/HalideHelpersConfig.cmake +4 -1
  37. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +3 -3
  38. halide-21.0.0.dist-info/METADATA +302 -0
  39. {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/RECORD +41 -41
  40. {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/WHEEL +1 -1
  41. halide-19.0.0.dist-info/METADATA +0 -301
  42. {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
- if hasattr(os, 'add_dll_directory'):
3
+
4
+ if hasattr(os, "add_dll_directory"):
4
5
  from pathlib import Path
5
- bin_dir = Path(__file__).parent / 'bin'
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
- # noinspection PyUnresolvedReferences
15
- from .halide_ import _, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9
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,