-
Notifications
You must be signed in to change notification settings - Fork 109
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
Enzyme: Cannot cast __enzyme_autodiff primal argument 16 #1772
Comments
Oh this might be clang splatting the args into two pieces. What happens if
you change the function and enzyme call to pass everything by reference
…On Thu, Feb 29, 2024 at 8:35 AM Egor Feklisov ***@***.***> wrote:
I'm getting a weird typecasting issue in Enzyme. What could be the source
of it?
https://fwd.gymni.ch/vATLS0
—
Reply to this email directly, view it on GitHub
<#1772>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJTUXA2YMIAQEFSFAQ34EDYV5MDLAVCNFSM6AAAAABEAIOIOWVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE3DCNRVG44TOOI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I hope I understood you correctly, but I see a similar issue |
C var-args passes things by value, so you need to |
Hopefully that solve your issue, however keeping this open for now so we can make the nice c++ syntax happy with it [and obviate the need for the extra work]: https://fwd.gymni.ch/UDe5lg |
Sorry, I am having same issue, in a small example I was creating to ask unrelated question. Why is the minimal function below gives same error?
|
@ipcamit I think you're just using the wrong names for some of the enzyme stuff. try:
|
This is embarrassing! I was using |
I'm getting a weird typecasting issue in Enzyme. What could be the source of it?
https://fwd.gymni.ch/vATLS0
The text was updated successfully, but these errors were encountered: