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

[Fix][TIR] Fix outdated call to create extern buffer in make_extern #17138

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

Husenap
Copy link
Contributor

@Husenap Husenap commented Jul 7, 2024

The C++ implementation of make_extern calls a local function(DeclExternBuffer) which is outdated and doesn't do the same thing as the equivalent Python function.

The Python implementation of decl_buffer was changed in #6317 and a check was added in buffer.cc which fails if you try to use make_extern in C++.

This PR fixes this by calling the tvm::tir::decl_buffer function in C++ which does the same thing as the Python implementation.

@vinx13 vinx13 merged commit 5d07423 into apache:main Jul 10, 2024
19 checks passed
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

Successfully merging this pull request may close these issues.

2 participants