Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build a Python extention #337

Open
saidctb opened this issue Feb 21, 2021 · 1 comment
Open

Build a Python extention #337

saidctb opened this issue Feb 21, 2021 · 1 comment

Comments

@saidctb
Copy link

saidctb commented Feb 21, 2021

Is it possible to call the generated function from Python?

@rbaghdadi
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants