This patch cleans up simple issues in the opdsl/lang Python files.
Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
Paths
| Differential D139954
mlir/opdsl: fix and inline type annotations, trim includes AbandonedPublic Authored by artagnon on Dec 13 2022, 10:26 AM.
Details
Summary This patch cleans up simple issues in the opdsl/lang Python files. Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>
Diff Detail
Event TimelineComment Actions Looks like a good cleanup! I am not really the owner of OpDSL anymore and suggest to wait for an accept from @nicolasvasilache. Comment Actions Have you tested this with Python 3.6? (I have been delayed in discussion to bump that requirement and ran into failure with type annotations on my previous python commit) Comment Actions I've tested it with Python 3.10, but shouldn't the CI fail my commit if it doesn't build on the minimum required version of Python? Comment Actions I see the following in LLVM's CMakeLists.txt: if(LLVM_INCLUDE_TESTS) # Lit test suite requires at least python 3.6 set(LLVM_MINIMUM_PYTHON_VERSION 3.6) else() # FIXME: it is unknown if this is the actual minimum bound set(LLVM_MINIMUM_PYTHON_VERSION 3.0) endif() Should I remove the conditional and set the minimum required version to 3.6 uniformly, since the CI doesn't test the else codepath? Python 3.6 isn't even available via homebrew, and I don't want to have to compile by hand: not sure how to test with 3.6. Comment Actions No unfortunately this only failed for me during post submit and buildbots. I ran into same issue and had to resort to using podman (with mlir-nvidia docker image that is checked in). I should have RFC out Monday or so about bumping to 3.8 (the change in 3.7 wrt types was big one syntax wise AFAICS).
Revision Contents
Diff 482547 mlir/python/mlir/dialects/linalg/opdsl/lang/affine.py
mlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py
mlir/python/mlir/dialects/linalg/opdsl/lang/config.py
mlir/python/mlir/dialects/linalg/opdsl/lang/dsl.py
mlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py
mlir/python/mlir/dialects/linalg/opdsl/lang/types.py
|