-
Notifications
You must be signed in to change notification settings - Fork 73
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
Frontend clang compilation error: redefinition of 'v2_filled' #1621
Comments
Hah nevermind they are in the same function scope!! It's just two uses of that value. I feel like this extra filling code should be done at the openfhe IR level so we can CSE it away instead of the emitter. |
Here was the backend MLIR
So it seems that the plaintext was generated with two different levels. |
+1 |
v2_filled exists purely out of the need of implicit cyclic repetition assumption. With the layout packing pass making it obvious, such variable should vanish one day. |
heir/lib/Target/Lattigo/LattigoEmitter.cpp Lines 407 to 408 in 56d6fbf
A workaround is specifying both the pt and target ct in the name to make it unique. |
I got a really strange error from the openfhe backend:
The code it was trying to compile did use v2_filled twice, but within two separate function scopes: https://gist.github.com/asraa/5d85f3243e97d6732b3385b1b0c76de5
So that makes me think maybe some options or something needs to change with the call to compile?
The text was updated successfully, but these errors were encountered: