Hi,
I am trying to compile and run a simple piece of MLIR using MLIR’s Python bindings. Whatever I do, it quits with JIT session error: Symbols not found: [ memrefCopy ]
.
In C++ I can provide ExecutionEngineOptions
, but these don’t seem to avalailable from Python. So I have no idea how I can tell it to use libmlir_c_runner_utils.so
.
All my attempts to use execution_engine.register_runtime(...)
were not successful.
I’d appreciate any hint on how to JIT&execute MLIR from Python when the compilation generates a dependency to memrefCopy
.
execution_engine = ExecutionEngine(self.module)
argA = ctypes.pointer(ctypes.pointer(get_ranked_memref_descriptor(self.A)))
argB = ctypes.pointer(ctypes.pointer(get_ranked_memref_descriptor(self.B)))
argC = ctypes.pointer(ctypes.pointer(get_ranked_memref_descriptor(self.C)))
execution_engine.invoke("run", argA, argB, argC)