tiramisu icon indicating copy to clipboard operation
tiramisu copied to clipboard

Build a Python extention

Open saidctb opened this issue 4 years ago • 1 comments

Is it possible to call the generated function from Python?

saidctb avatar Feb 21 '21 16:02 saidctb

Sure. The generated code is just an object file that has the function you generated. You can call it from Python like any other C function. The wrapper file in this folder, calls the function generated by the tutorial_01.cpp generator file: https://github.com/Tiramisu-Compiler/tiramisu/tree/master/tutorials/developers/tutorial_01

rbaghdadi avatar Feb 21 '21 20:02 rbaghdadi