Revision 05ae15a82983c76fffcc0a2c3f4aecfd7098d4db authored by Andrew Adams on 05 March 2024, 17:50:19 UTC, committed by GitHub on 05 March 2024, 17:50:19 UTC
This is one of our largest remaining type of magic name. These were explicitly constructed in lots of places and then explicitly checked for with ends_with in lots of places. This PR makes the names opaque. Only CanonicalizeGPUVars.cpp knows what they are, and they don't have to be a single fixed thing as long as they're consistent within a process. Also reduced the number of GPU dimensions to three more uniformly. We were already asserting this, but there was lots of dead code in lowering passes after gpu loop validation that allowed for four. Also fixed a bug I found in is_block_uniform. It didn't consider that the dependence on a gpu thread variable in a load index could be because a let variable encountered depends on a gpu thread variable.
1 parent d33ffa2
setup.py
import pybind11
from setuptools import find_packages
from skbuild import setup
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README_python.md").read_text()
setup(
name="halide",
version='17.0.0',
author="The Halide team",
author_email="halide-dev@lists.csail.mit.edu",
description="Halide is a programming language designed to make it easier "
"to write high-performance image and array processing code.",
long_description=long_description,
long_description_content_type='text/markdown',
python_requires=">=3.8",
packages=find_packages(where="python_bindings/src"),
package_dir={"": "python_bindings/src"},
cmake_source_dir="python_bindings",
cmake_args=[
f"-Dpybind11_ROOT={pybind11.get_cmake_dir()}",
"-DCMAKE_REQUIRE_FIND_PACKAGE_pybind11=YES",
"-DHalide_INSTALL_PYTHONDIR=python_bindings/src",
"-DCMAKE_INSTALL_RPATH=$<IF:$<PLATFORM_ID:Darwin>,@loader_path,$ORIGIN>",
"-DHalide_Python_INSTALL_IMPORTED_DEPS=ON",
"-DWITH_TESTS=NO",
"-DWITH_TUTORIALS=NO",
"-DWITH_PYTHON_STUBS=NO",
"-DCMAKE_PREFIX_PATH=$ENV{CMAKE_PREFIX_PATH}",
"--no-warn-unused-cli",
],
)
Computing file changes ...