[all-commits] [llvm/llvm-project] d66821: [mlir][python][ctypes] fix ctype python binding co...
Aart Bik via All-commits
all-commits at lists.llvm.org
Wed Jun 1 10:15:42 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d668218946b1b7e0f3f376c59fe818bc0579d6fd
https://github.com/llvm/llvm-project/commit/d668218946b1b7e0f3f376c59fe818bc0579d6fd
Author: Aart Bik <ajcbik at google.com>
Date: 2022-06-01 (Wed, 01 Jun 2022)
Changed paths:
M mlir/python/mlir/runtime/np_to_memref.py
M mlir/test/python/execution_engine.py
Log Message:
-----------
[mlir][python][ctypes] fix ctype python binding complication for complex
There is no direct ctypes for MLIR's complex (and thus np.complex128
and np.complex64) yet, causing the mlir python binding methods for
memrefs to crash. This revision fixes this by passing complex arrays
as tuples of floats, correcting at the boundaries for the proper view.
NOTE: some of these changes (4 -> 2) were forced by the new "linting"
Reviewed By: mehdi_amini
Differential Revision: https://reviews.llvm.org/D126422
More information about the All-commits
mailing list