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

could not staticallly determine size of realloc #108

Open
ZuseZ4 opened this issue Apr 5, 2024 · 0 comments
Open

could not staticallly determine size of realloc #108

ZuseZ4 opened this issue Apr 5, 2024 · 0 comments

Comments

@ZuseZ4
Copy link
Member

ZuseZ4 commented Apr 5, 2024

The safe gmm implementation could idiomatically use Box<[T]>, since we know those Vec's wont' change their length.
However, Enzyme fails with:

error: <unknown>:0:0: in function preprocess___rdl_realloc ptr (ptr, i64, i64, i64): Enzyme: could not statically determine size of realloc   %23 = tail call noundef ptr @realloc(ptr noundef %0, i64 noundef %3) #119 - because of - ptr %0

working variant is in: EnzymeAD/Enzyme#1797

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

1 participant