-
Notifications
You must be signed in to change notification settings - Fork 193
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
Pass scalar by values for user functions #2098
Conversation
Passing scalar by ref (through universal reference) leads to worst code, so avoid the situation when we can.
ea1bf33
to
984ae88
Compare
@jeanlaroche following up on your comments in #2095 on that PR : yeah I do plan to merge this one, but it's the most ground-breaking one, so let's dive into your issues, would you be able to share the whole error log and/or a minimal reproducer? |
I'm confused. I haven't tried 2095, even though I commented in there...
Should I?
And yes, I'll pasted my errors.
…On 4/14/23 2:47 PM, serge-sans-paille wrote:
@jeanlaroche <https://github.com/jeanlaroche> following up on your
comments in #2095
<#2095> on that PR
: yeah I do plan to merge this one, but it's the most ground-breaking
one, so let's dive into your issues, would you be able to share the
whole error log and/or a minimal reproducer?
—
Reply to this email directly, view it on GitHub
<#2098 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGUBEPMN6VTVWDZ5C6STHQ3XBHAXBANCNFSM6AAAAAAW5RD47I>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Here's the full error:
https://pastebin.com/PgjxVGrs
It's likely connected to code that I have to call a tensorflow library
from the C++ code generated by pythran, but just in case that's not it.
Jean
…On 4/14/23 2:47 PM, serge-sans-paille wrote:
@jeanlaroche <https://github.com/jeanlaroche> following up on your
comments in #2095
<#2095> on that PR
: yeah I do plan to merge this one, but it's the most ground-breaking
one, so let's dive into your issues, would you be able to share the
whole error log and/or a minimal reproducer?
—
Reply to this email directly, view it on GitHub
<#2098 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGUBEPMN6VTVWDZ5C6STHQ3XBHAXBANCNFSM6AAAAAAW5RD47I>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jeanlaroche could you share the original python code? |
OK I took a closer look at the code. The issue is that the calling convention used by pythran has changed with this PR so I needed to update some patches accordingly. Once I do that the compilation error disappears. |
@jeanlaroche can I take this as a green light to merge this PR? |
yes! |
passing scalar by ref (through universal reference) leads to worst code, so avoid the situation when we can.