halide 19.0.0__cp313-cp313-win_amd64.whl → 21.0.0__cp313-cp313-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.
Files changed (46) hide show
  1. halide/__init__.py +10 -6
  2. halide/_generator_helpers.py +190 -127
  3. halide/bin/Halide.dll +0 -0
  4. halide/bin/adams2019_retrain_cost_model.exe +0 -0
  5. halide/bin/adams2019_weightsdir_to_weightsfile.exe +0 -0
  6. halide/bin/anderson2021_retrain_cost_model.exe +0 -0
  7. halide/bin/anderson2021_weightsdir_to_weightsfile.exe +0 -0
  8. halide/bin/featurization_to_sample.exe +0 -0
  9. halide/bin/gengen.exe +0 -0
  10. halide/bin/get_host_target.exe +0 -0
  11. halide/halide_.cp313-win_amd64.pyd +0 -0
  12. halide/imageio.py +1 -1
  13. halide/include/Halide.h +1775 -1477
  14. halide/include/HalideBuffer.h +13 -13
  15. halide/include/HalidePyTorchCudaHelpers.h +1 -1
  16. halide/include/HalideRuntime.h +35 -16
  17. halide/lib/Halide.lib +0 -0
  18. halide/lib/HalidePyStubs.lib +0 -0
  19. halide/lib/Halide_GenGen.lib +0 -0
  20. halide/lib/autoschedule_adams2019.dll +0 -0
  21. halide/lib/autoschedule_anderson2021.dll +0 -0
  22. halide/lib/autoschedule_li2018.dll +0 -0
  23. halide/lib/autoschedule_mullapudi2016.dll +0 -0
  24. halide/lib/cmake/Halide/FindHalide_LLVM.cmake +44 -15
  25. halide/lib/cmake/Halide/FindV8.cmake +0 -12
  26. halide/lib/cmake/Halide/Halide-shared-targets.cmake +1 -1
  27. halide/lib/cmake/Halide/HalideConfig.cmake +1 -1
  28. halide/lib/cmake/Halide/HalideConfigVersion.cmake +3 -3
  29. halide/lib/cmake/HalideHelpers/Halide-Interfaces.cmake +1 -0
  30. halide/lib/cmake/HalideHelpers/HalideGeneratorHelpers.cmake +31 -9
  31. halide/lib/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +3 -3
  32. halide/lib/cmake/Halide_Python/Halide_PythonConfigVersion.cmake +3 -3
  33. halide/share/doc/Halide/README.md +7 -6
  34. halide/share/doc/Halide/doc/BuildingHalideWithCMake.md +78 -6
  35. halide/share/doc/Halide/doc/HalideCMakePackage.md +9 -2
  36. halide/share/doc/Halide/doc/Python.md +19 -4
  37. halide/share/doc/Halide/doc/RunGen.md +1 -1
  38. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/Halide/HalideConfig.cmake +4 -1
  39. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/Halide/HalideConfigVersion.cmake +3 -3
  40. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/HalideHelpers/HalideHelpersConfig.cmake +4 -1
  41. {halide-19.0.0.data → halide-21.0.0.data}/data/share/cmake/HalideHelpers/HalideHelpersConfigVersion.cmake +3 -3
  42. halide-21.0.0.dist-info/METADATA +302 -0
  43. {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/RECORD +45 -45
  44. {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/WHEEL +1 -1
  45. halide-19.0.0.dist-info/METADATA +0 -301
  46. {halide-19.0.0.dist-info → halide-21.0.0.dist-info}/licenses/LICENSE.txt +0 -0
@@ -31,6 +31,7 @@ are looking for Halide's CMake coding guidelines, see [CodeStyleCMake.md].
31
31
  * [Build options](#build-options)
32
32
  * [Installing](#installing)
33
33
  * [Building Halide with pip](#building-halide-with-pip)
34
+ * [Using ccache with pip builds](#using-ccache-with-pip-builds)
34
35
  <!-- TOC -->
35
36
 
36
37
  # Installing CMake
@@ -147,8 +148,8 @@ building the core pieces of Halide.
147
148
  | [flatbuffers] | `~=23.5.26` | `WITH_SERIALIZATION=ON` | |
148
149
  | [wabt] | `==1.0.36` | `Halide_WASM_BACKEND=wabt` | Does not have a stable API; exact version required. |
149
150
  | [V8] | trunk | `Halide_WASM_BACKEND=V8` | Difficult to build. See [WebAssembly.md] |
150
- | [Python] | `>=3.8` | `WITH_PYTHON_BINDINGS=ON` | |
151
- | [pybind11] | `~=2.10.4` | `WITH_PYTHON_BINDINGS=ON` | |
151
+ | [Python] | `>=3.9` | `WITH_PYTHON_BINDINGS=ON` | |
152
+ | [pybind11] | `~=2.11.1` | `WITH_PYTHON_BINDINGS=ON` | |
152
153
 
153
154
  Halide maintains the following compatibility policy with LLVM: Halide version
154
155
  `N` supports LLVM versions `N`, `N-1`, and `N-2`. Our binary distributions
@@ -243,16 +244,18 @@ from the root of the repository.
243
244
  On macOS, it is possible to install all dependencies via [Homebrew][homebrew]:
244
245
 
245
246
  ```shell
246
- $ brew install llvm flatbuffers wabt python pybind11 doxygen eigen libpng libjpeg openblas
247
+ $ brew install llvm flatbuffers wabt python pybind11 doxygen eigen libpng libjpeg-turbo openblas
247
248
  ```
248
249
 
249
250
  The `llvm` package includes `clang`, `clang-format`, and `lld`, too. To ensure
250
- CMake can find the keg-only dependencies, set the following:
251
+ CMake can find LLVM, set the following cache variable:
251
252
 
252
253
  ```shell
253
- $ export CMAKE_PREFIX_PATH="/opt/homebrew:/opt/homebrew/opt/llvm:/opt/homebrew/opt/jpeg"
254
+ $ cmake ... -DHalide_ROOT=/opt/homebrew/opt/llvm
254
255
  ```
255
256
 
257
+ Or use the `macOS` CMake preset, which does this for you.
258
+
256
259
  ### Ubuntu / Debian
257
260
 
258
261
  On Ubuntu you should install the following packages (this includes the Python
@@ -260,7 +263,7 @@ module dependencies):
260
263
 
261
264
  ```
262
265
  $ sudo apt install clang-tools lld llvm-dev libclang-dev liblld-dev \
263
- libpng-dev libjpeg-dev libgl-dev python3-dev python3-numpy python3-scipy \
266
+ libpng-dev libjpeg-dev libgl-dev python3-dev python3-numpy \
264
267
  python3-imageio python3-pybind11 libopenblas-dev libeigen3-dev \
265
268
  libatlas-base-dev doxygen
266
269
  ```
@@ -514,6 +517,71 @@ However, this comes with a few caveats:
514
517
  Even so, this is a very good method of installing Halide. It supports both
515
518
  Python and C++ `find_package` workflows.
516
519
 
520
+ ## Using ccache with pip builds
521
+
522
+ Because Python's build infrastructure creates temporary CMake build directories,
523
+ simply setting `CMAKE_CXX_COMPILER_LAUNCHER` to `ccache` is insufficient to
524
+ produce a well-cached build. The following settings should serve as a starting
525
+ point to configure your environment (assuming `$PWD` is the repository root)
526
+ for using `ccache` with `pip install .`.
527
+
528
+ ```shell
529
+ # Point CMake to ccache
530
+ export CMAKE_C_COMPILER_LAUNCHER=ccache
531
+ export CMAKE_CXX_COMPILER_LAUNCHER=ccache
532
+
533
+ # Settings to make ccache try to ignore the build directory
534
+ export CCACHE_BASEDIR=$PWD
535
+ export CCACHE_NOHASHDIR=true
536
+
537
+ # Enable caching of pre-compiled headers and rewrite debug paths
538
+ # -Xclang -fno-pch-timestamp is only necessary when using Clang (not GCC)
539
+ export CCACHE_SLOPPINESS=include_file_ctime,include_file_mtime,pch_defines,time_macros
540
+ export CFLAGS="-Xclang -fno-pch-timestamp -fdebug-prefix-map=$PWD=."
541
+ export CXXFLAGS="$CFLAGS"
542
+
543
+ # Locate the temporary build beneath $PWD so that CCACHE_BASEDIR works
544
+ export TMPDIR=$PWD/build/tmp
545
+
546
+ # If using uv, don't create a temporary venv
547
+ export UV_NO_BUILD_ISOLATION=1
548
+ ```
549
+
550
+ See the CCache documentation on [compiling in different directories] and on
551
+ using [precompiled headers] for more information about these settings. To check
552
+ that ccache is working, run,
553
+
554
+ ```shell
555
+ $ uv pip install . # first run, populate cache
556
+ Resolved 4 packages in 397ms
557
+ Built halide @ file:///Users/areinking/dev/Halide
558
+ Prepared 1 package in 29.17s
559
+ Installed 1 package in 8ms
560
+ + halide==20.0.0.dev87+gf6c939fd3.d20250724 (from file:///Users/areinking/dev/Halide)
561
+ $ ccache -z
562
+ Statistics zeroed
563
+ $ uv pip install . # second run, reload from cache
564
+ Resolved 4 packages in 338ms
565
+ Built halide @ file:///Users/areinking/dev/Halide
566
+ Prepared 1 package in 10.82s
567
+ Uninstalled 1 package in 7ms
568
+ Installed 1 package in 6ms
569
+ ~ halide==20.0.0.dev87+gf6c939fd3.d20250724 (from file:///Users/areinking/dev/Halide)
570
+ $ ccache -s
571
+ Cacheable calls: 1079 / 1080 (99.91%)
572
+ Hits: 1079 / 1079 (100.0%)
573
+ Direct: 1079 / 1079 (100.0%)
574
+ Preprocessed: 0 / 1079 ( 0.00%)
575
+ Misses: 0 / 1079 ( 0.00%)
576
+ Uncacheable calls: 1 / 1080 ( 0.09%)
577
+ Local storage:
578
+ Cache size (GB): 2.2 / 30.0 ( 7.24%)
579
+ Hits: 1079 / 1079 (100.0%)
580
+ Misses: 0 / 1079 ( 0.00%)
581
+ ```
582
+
583
+ On this test system (an M3 MacBook Pro), the build is three times faster,
584
+ with a 100% cache hit rate!
517
585
 
518
586
  [ATLAS]: http://math-atlas.sourceforge.net/
519
587
 
@@ -577,6 +645,8 @@ Python and C++ `find_package` workflows.
577
645
 
578
646
  [cmake_presets]: https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html
579
647
 
648
+ [compiling in different directories]: https://ccache.dev/manual/4.11.3.html#_compiling_in_different_directories
649
+
580
650
  [doxygen-download]: https://www.doxygen.nl/download.html
581
651
 
582
652
  [doxygen]: https://www.doxygen.nl/index.html
@@ -603,6 +673,8 @@ Python and C++ `find_package` workflows.
603
673
 
604
674
  [pipx]: https://pipx.pypa.io/stable/
605
675
 
676
+ [precompiled headers]: https://ccache.dev/manual/4.11.3.html#_precompiled_headers
677
+
606
678
  [pybind11]: https://github.com/pybind/pybind11
607
679
 
608
680
  [pypi-cmake]: https://pypi.org/project/cmake/
@@ -392,6 +392,7 @@ add_halide_library(<target> FROM <generator-target>
392
392
  [NAMESPACE cpp-namespace]
393
393
  [USE_RUNTIME hl-target]
394
394
  [PARAMS param1 [param2 ...]]
395
+ [DEPENDS [dep1 dep2 ...]]
395
396
  [TARGETS target1 [target2 ...]]
396
397
  [FEATURES feature1 [feature2 ...]]
397
398
  [FEATURES[<triple>] feature1 [feature2 ...]]
@@ -463,6 +464,12 @@ When `CMAKE_OSX_ARCHITECTURES` is set and the `TARGETS` argument resolves to
463
464
  `cmake`, the generator will be run once for each architecture and the results
464
465
  will be fused together using `lipo`. This behavior extends to runtime targets.
465
466
 
467
+ Sometimes, the generation will need to read files that were generated during the
468
+ build. To declare dependencies on these files, use the `DEPENDS` argument. Paths
469
+ listed here will be passed verbatim to `add_custom_command`, and so will be
470
+ relative to the source directory. Use absolute paths when referring to files
471
+ outside the source directory.
472
+
466
473
  To use an autoscheduler, set the `AUTOSCHEDULER` argument to a target named like
467
474
  `Namespace::Scheduler`, for example `Halide::Adams2019`. This will set the
468
475
  `autoscheduler` GeneratorParam on the generator command line to `Scheduler`
@@ -532,8 +539,8 @@ will be added to the extension as a callable method of the module. Note that
532
539
  every library specified must be built with the `PYTHON_EXTENSION` keyword
533
540
  specified, and all libraries must use the same Halide runtime.
534
541
 
535
- The result will be a shared library of the form `<target>.<soabi>.so`, where
536
- `<soabi>` describes the specific Python version and platform (e.g.,
542
+ The result will be a shared library of the form `<target>.<soabi>.so`, where
543
+ `<soabi>` describes the specific Python version and platform (e.g.,
537
544
  `cpython-310-darwin` for Python 3.10 on macOS.)
538
545
 
539
546
  ### `add_halide_runtime`
@@ -31,7 +31,7 @@
31
31
  * [License](#license)
32
32
  <!-- TOC -->
33
33
 
34
- Halide provides Python bindings for most of its public API. Python 3.8 (or
34
+ Halide provides Python bindings for most of its public API. Python 3.9 (or
35
35
  higher) is required. The Python bindings are supported on 64-bit Linux, OSX, and
36
36
  Windows systems.
37
37
 
@@ -85,12 +85,17 @@ $ python3 -m pip install -U pip "setuptools[core]" wheel
85
85
  $ python3 -m pip install -r requirements.txt
86
86
  ```
87
87
 
88
+ Or, if using `uv` the following command is equivalent:
89
+
90
+ ```shell
91
+ uv venv --python 3.12 # for example
92
+ uv pip install -r requirements.txt
93
+ ```
94
+
88
95
  Then build and install Halide:
89
96
 
90
97
  ```shell
91
- $ cmake -G Ninja -S . -B build \
92
- -DCMAKE_BUILD_TYPE=Release \
93
- -DWITH_PYTHON_BINDINGS=ON
98
+ $ cmake -G Ninja -S . -B build -DCMAKE_BUILD_TYPE=Release
94
99
  $ cmake --build build
95
100
  $ cmake --install build --prefix .local
96
101
  ```
@@ -126,6 +131,16 @@ Then it should be as simple as:
126
131
  $ pip install .
127
132
  ```
128
133
 
134
+ When using `uv`, this entire workflow can be run via
135
+
136
+ ```shell
137
+ $ uv sync
138
+ ```
139
+
140
+ If you need a different Python version, you can add `--python 3.xy` to this
141
+ command. If you wish to install compatible build tools into the venv (e.g.
142
+ CMake, ninja), rather than use your system tools, pass `--group tools` here.
143
+
129
144
  ## Documentation and Examples
130
145
 
131
146
  As mentioned elsewhere, the Python API attempts to mimic the
@@ -125,7 +125,7 @@ Generator, and inits every element to zero:
125
125
 
126
126
  ```
127
127
  # Input is a 3-dimensional image with extent 123, 456, and 3
128
- # (bluring an image of all zeroes isn't very interesting, of course)
128
+ # (bluring an image of all zeros isn't very interesting, of course)
129
129
  $ ./bin/local_laplacian.rungen --output_extents=[100,200,3] input=zero:[123,456,3] levels=8 alpha=1 beta=1 output=/tmp/out.png
130
130
  ```
131
131
 
@@ -1,6 +1,9 @@
1
1
  cmake_minimum_required(VERSION 3.28)
2
2
 
3
3
  include(CMakeFindDependencyMacro)
4
- find_dependency(Python 3)
4
+ find_dependency(
5
+ Python 3
6
+ COMPONENTS Interpreter Development.Module
7
+ )
5
8
 
6
9
  include("${Python_SITEARCH}/halide/lib/cmake/Halide/HalideConfig.cmake")
@@ -9,19 +9,19 @@
9
9
  # The variable CVF_VERSION must be set before calling configure_file().
10
10
 
11
11
 
12
- set(PACKAGE_VERSION "19.0.0")
12
+ set(PACKAGE_VERSION "21.0.0")
13
13
 
14
14
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
15
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
16
  else()
17
17
 
18
- if("19.0.0" MATCHES "^([0-9]+)\\.")
18
+ if("21.0.0" MATCHES "^([0-9]+)\\.")
19
19
  set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
20
  if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
21
  string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
22
  endif()
23
23
  else()
24
- set(CVF_VERSION_MAJOR "19.0.0")
24
+ set(CVF_VERSION_MAJOR "21.0.0")
25
25
  endif()
26
26
 
27
27
  if(PACKAGE_FIND_VERSION_RANGE)
@@ -1,6 +1,9 @@
1
1
  cmake_minimum_required(VERSION 3.28)
2
2
 
3
3
  include(CMakeFindDependencyMacro)
4
- find_dependency(Python 3)
4
+ find_dependency(
5
+ Python 3
6
+ COMPONENTS Interpreter Development.Module
7
+ )
5
8
 
6
9
  include("${Python_SITEARCH}/halide/lib/cmake/HalideHelpers/HalideHelpersConfig.cmake")
@@ -9,19 +9,19 @@
9
9
  # The variable CVF_VERSION must be set before calling configure_file().
10
10
 
11
11
 
12
- set(PACKAGE_VERSION "19.0.0")
12
+ set(PACKAGE_VERSION "21.0.0")
13
13
 
14
14
  if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
15
15
  set(PACKAGE_VERSION_COMPATIBLE FALSE)
16
16
  else()
17
17
 
18
- if("19.0.0" MATCHES "^([0-9]+)\\.")
18
+ if("21.0.0" MATCHES "^([0-9]+)\\.")
19
19
  set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}")
20
20
  if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0)
21
21
  string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}")
22
22
  endif()
23
23
  else()
24
- set(CVF_VERSION_MAJOR "19.0.0")
24
+ set(CVF_VERSION_MAJOR "21.0.0")
25
25
  endif()
26
26
 
27
27
  if(PACKAGE_FIND_VERSION_RANGE)
@@ -0,0 +1,302 @@
1
+ Metadata-Version: 2.2
2
+ Name: halide
3
+ Version: 21.0.0
4
+ Summary: Halide is a programming language designed to make it easier to write high-performance image and array processing code.
5
+ Keywords: array,compiler,domain-specific language,dsl,gpu,hexagon,image processing,machine learning,performance,programming language
6
+ Author-Email: The Halide team <halide-dev@lists.csail.mit.edu>
7
+ Maintainer-Email: Alex Reinking <areinking@adobe.com>
8
+ License: Copyright (c) 2012-2020 MIT CSAIL, Google, Facebook, Adobe, NVIDIA CORPORATION, and other contributors.
9
+
10
+ Developed by:
11
+
12
+ The Halide team
13
+ http://halide-lang.org
14
+
15
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
16
+ this software and associated documentation files (the "Software"), to deal in
17
+ the Software without restriction, including without limitation the rights to
18
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
19
+ of the Software, and to permit persons to whom the Software is furnished to do
20
+ so, subject to the following conditions:
21
+
22
+ The above copyright notice and this permission notice shall be included in all
23
+ copies or substantial portions of the Software.
24
+
25
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
31
+ SOFTWARE.
32
+
33
+ -----
34
+
35
+ apps/bgu is Copyright 2016 Google Inc. and is Licensed under the Apache License,
36
+ Version 2.0 (the "License"); you may not use this file except in compliance
37
+ with the License.
38
+
39
+ Apache License
40
+
41
+ Version 2.0, January 2004
42
+
43
+ http://www.apache.org/licenses/
44
+
45
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
46
+
47
+ 1. Definitions.
48
+
49
+ "License" shall mean the terms and conditions for use, reproduction, and
50
+ distribution as defined by Sections 1 through 9 of this document.
51
+
52
+ "Licensor" shall mean the copyright owner or entity authorized by the
53
+ copyright owner that is granting the License.
54
+
55
+ "Legal Entity" shall mean the union of the acting entity and all other
56
+ entities that control, are controlled by, or are under common control with
57
+ that entity. For the purposes of this definition, "control" means (i) the
58
+ power, direct or indirect, to cause the direction or management of such
59
+ entity, whether by contract or otherwise, or (ii) ownership of fifty percent
60
+ (50%) or more of the outstanding shares, or (iii) beneficial ownership of such
61
+ entity.
62
+
63
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
64
+ permissions granted by this License.
65
+
66
+ "Source" form shall mean the preferred form for making modifications,
67
+ including but not limited to software source code, documentation source, and
68
+ configuration files.
69
+
70
+ "Object" form shall mean any form resulting from mechanical transformation or
71
+ translation of a Source form, including but not limited to compiled object
72
+ code, generated documentation, and conversions to other media types.
73
+
74
+ "Work" shall mean the work of authorship, whether in Source or Object form,
75
+ made available under the License, as indicated by a copyright notice that is
76
+ included in or attached to the work (an example is provided in the Appendix
77
+ below).
78
+
79
+ "Derivative Works" shall mean any work, whether in Source or Object form, that
80
+ is based on (or derived from) the Work and for which the editorial revisions,
81
+ annotations, elaborations, or other modifications represent, as a whole, an
82
+ original work of authorship. For the purposes of this License, Derivative
83
+ Works shall not include works that remain separable from, or merely link (or
84
+ bind by name) to the interfaces of, the Work and Derivative Works thereof.
85
+
86
+ "Contribution" shall mean any work of authorship, including the original
87
+ version of the Work and any modifications or additions to that Work or
88
+ Derivative Works thereof, that is intentionally submitted to Licensor for
89
+ inclusion in the Work by the copyright owner or by an individual or Legal
90
+ Entity authorized to submit on behalf of the copyright owner. For the purposes
91
+ of this definition, "submitted" means any form of electronic, verbal, or
92
+ written communication sent to the Licensor or its representatives, including
93
+ but not limited to communication on electronic mailing lists, source code
94
+ control systems, and issue tracking systems that are managed by, or on behalf
95
+ of, the Licensor for the purpose of discussing and improving the Work, but
96
+ excluding communication that is conspicuously marked or otherwise designated
97
+ in writing by the copyright owner as "Not a Contribution."
98
+
99
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf
100
+ of whom a Contribution has been received by Licensor and subsequently
101
+ incorporated within the Work.
102
+
103
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
104
+
105
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
106
+
107
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
108
+
109
+ (a) You must give any other recipients of the Work or Derivative Works a copy
110
+ of this License; and
111
+
112
+ (b) You must cause any modified files to carry prominent notices stating that
113
+ You changed the files; and
114
+
115
+ (c) You must retain, in the Source form of any Derivative Works that You
116
+ distribute, all copyright, patent, trademark, and attribution notices from the
117
+ Source form of the Work, excluding those notices that do not pertain to any
118
+ part of the Derivative Works; and
119
+
120
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
121
+ then any Derivative Works that You distribute must include a readable copy of
122
+ the attribution notices contained within such NOTICE file, excluding those
123
+ notices that do not pertain to any part of the Derivative Works, in at least
124
+ one of the following places: within a NOTICE text file distributed as part of
125
+ the Derivative Works; within the Source form or documentation, if provided
126
+ along with the Derivative Works; or, within a display generated by the
127
+ Derivative Works, if and wherever such third-party notices normally appear.
128
+ The contents of the NOTICE file are for informational purposes only and do not
129
+ modify the License. You may add Your own attribution notices within Derivative
130
+ Works that You distribute, alongside or as an addendum to the NOTICE text from
131
+ the Work, provided that such additional attribution notices cannot be
132
+ construed as modifying the License.
133
+
134
+ You may add Your own copyright statement to Your modifications and may provide
135
+ additional or different license terms and conditions for use, reproduction, or
136
+ distribution of Your modifications, or for any such Derivative Works as a
137
+ whole, provided Your use, reproduction, and distribution of the Work otherwise
138
+ complies with the conditions stated in this License.
139
+
140
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
141
+
142
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
145
+
146
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
147
+
148
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
149
+
150
+ END OF TERMS AND CONDITIONS
151
+
152
+ -----
153
+
154
+ apps/support/cmdline.h is Copyright (c) 2009, Hideyuki Tanaka and is licensed
155
+ under the BSD 3-Clause license.
156
+
157
+ Redistribution and use in source and binary forms, with or without
158
+ modification, are permitted provided that the following conditions are met:
159
+ * Redistributions of source code must retain the above copyright
160
+ notice, this list of conditions and the following disclaimer.
161
+ * Redistributions in binary form must reproduce the above copyright
162
+ notice, this list of conditions and the following disclaimer in the
163
+ documentation and/or other materials provided with the distribution.
164
+ * Neither the name of the <organization> nor the
165
+ names of its contributors may be used to endorse or promote products
166
+ derived from this software without specific prior written permission.
167
+
168
+ THIS SOFTWARE IS PROVIDED BY <copyright holder> ''AS IS'' AND ANY
169
+ EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
170
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
171
+ DISCLAIMED. IN NO EVENT SHALL <copyright holder> BE LIABLE FOR ANY
172
+ DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
173
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
174
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
175
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
176
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
177
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
178
+
179
+ ----
180
+
181
+ dependencies/spirv is Copyright (c) 2014-2018 The Khronos Group Inc.
182
+
183
+ Permission is hereby granted, free of charge, to any person obtaining a copy
184
+ of this software and/or associated documentation files (the "Materials"),
185
+ to deal in the Materials without restriction, including without limitation
186
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
187
+ and/or sell copies of the Materials, and to permit persons to whom the
188
+ Materials are furnished to do so, subject to the following conditions:
189
+
190
+ The above copyright notice and this permission notice shall be included in
191
+ all copies or substantial portions of the Materials.
192
+
193
+ MODIFICATIONS TO THIS FILE MAY MEAN IT NO LONGER ACCURATELY REFLECTS KHRONOS
194
+ STANDARDS. THE UNMODIFIED, NORMATIVE VERSIONS OF KHRONOS SPECIFICATIONS AND
195
+ HEADER INFORMATION ARE LOCATED AT https://www.khronos.org/registry/
196
+
197
+ THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
198
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
199
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
200
+ THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
201
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
202
+ FROM,OUT OF OR IN CONNECTION WITH THE MATERIALS OR THE USE OR OTHER DEALINGS
203
+ IN THE MATERIALS.
204
+
205
+
206
+ ----
207
+
208
+ dependencies/vulkan is Copyright (c) 2014-2017 The Khronos Group Inc.
209
+
210
+ Licensed under the Apache License, Version 2.0 (the "License");
211
+ you may not use this file except in compliance with the License.
212
+ You may obtain a copy of the License at
213
+
214
+ http://www.apache.org/licenses/LICENSE-2.0
215
+
216
+ Unless required by applicable law or agreed to in writing, software
217
+ distributed under the License is distributed on an "AS IS" BASIS,
218
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
219
+ See the License for the specific language governing permissions and
220
+ limitations under the License.
221
+
222
+ ----
223
+
224
+ apps/linear_algebra/include/cblas.h is licensed under the BLAS license.
225
+
226
+ The reference BLAS is a freely-available software package. It is available from
227
+ netlib via anonymous ftp and the World Wide Web. Thus, it can be included in
228
+ commercial software packages (and has been). We only ask that proper credit be
229
+ given to the authors.
230
+
231
+ Like all software, it is copyrighted. It is not trademarked, but we do ask the
232
+ following:
233
+
234
+ If you modify the source for these routines we ask that you change the name of
235
+ the routine and comment the changes made to the original.
236
+
237
+ We will gladly answer any questions regarding the software. If a modification is
238
+ done, however, it is the responsibility of the person who modified the routine
239
+ to provide support.
240
+
241
+
242
+ Classifier: Development Status :: 5 - Production/Stable
243
+ Classifier: Environment :: GPU
244
+ Classifier: Environment :: GPU :: NVIDIA CUDA
245
+ Classifier: Environment :: WebAssembly
246
+ Classifier: Intended Audience :: Developers
247
+ Classifier: Intended Audience :: Science/Research
248
+ Classifier: License :: OSI Approved :: MIT License
249
+ Classifier: Natural Language :: English
250
+ Classifier: Operating System :: MacOS
251
+ Classifier: Operating System :: Microsoft :: Windows
252
+ Classifier: Operating System :: POSIX
253
+ Classifier: Programming Language :: C++
254
+ Classifier: Programming Language :: Python :: 3
255
+ Classifier: Programming Language :: Python :: 3 :: Only
256
+ Classifier: Programming Language :: Python :: 3.9
257
+ Classifier: Programming Language :: Python :: 3.10
258
+ Classifier: Programming Language :: Python :: 3.11
259
+ Classifier: Programming Language :: Python :: 3.12
260
+ Classifier: Programming Language :: Python :: 3.13
261
+ Classifier: Programming Language :: Python :: Implementation :: CPython
262
+ Classifier: Topic :: Multimedia :: Graphics
263
+ Classifier: Topic :: Scientific/Engineering
264
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
265
+ Classifier: Topic :: Scientific/Engineering :: Image Processing
266
+ Classifier: Topic :: Software Development :: Code Generators
267
+ Classifier: Topic :: Software Development :: Compilers
268
+ Classifier: Topic :: Software Development :: Libraries
269
+ Project-URL: Homepage, https://halide-lang.org
270
+ Project-URL: Documentation, https://github.com/halide/Halide/blob/main/doc/Python.md
271
+ Project-URL: Documentation (C++), https://halide-lang.org/docs
272
+ Project-URL: Issues, https://github.com/halide/Halide/issues
273
+ Project-URL: Repository, https://github.com/halide/Halide.git
274
+ Requires-Python: >=3.9
275
+ Requires-Dist: imageio>=2
276
+ Requires-Dist: numpy>=1.26
277
+ Description-Content-Type: text/markdown
278
+
279
+ Halide is a programming language designed to make it easier to write
280
+ high-performance image and array processing code on modern machines. Halide
281
+ currently targets:
282
+
283
+ - CPU architectures: X86, ARM, Hexagon, PowerPC, RISC-V
284
+ - Operating systems: Linux, Windows, macOS, Android, iOS, Qualcomm QuRT
285
+ - GPU Compute APIs: CUDA, OpenCL, Apple Metal, Microsoft Direct X 12, Vulkan
286
+
287
+ Rather than being a standalone programming language, Halide is embedded in
288
+ Python. This means you write Python code that builds an in-memory representation
289
+ of a Halide pipeline using Halide's Python API. You can then compile this
290
+ representation to an object file, or JIT-compile it and run it in the same
291
+ process.
292
+
293
+ ## Using Halide from C++
294
+ Halide is also available as a C++ library. This package provides the development
295
+ files necessary to use Halide from C++, including a CMake package. On Linux and
296
+ macOS, CMake's `find_package` command should find Halide as long as you're in
297
+ the same virtual environment you installed it in. On Windows, you will need to
298
+ add the virtual environment root directory to `CMAKE_PREFIX_PATH`. This can be
299
+ done by running `set CMAKE_PREFIX_PATH=%VIRTUAL_ENV%` in `cmd`.
300
+
301
+ Other build systems can find the Halide root path by running `python -c
302
+ "import halide; print(halide.install_dir())"`.