You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering if someone has run into a similar complication, when using constant variable lookups in a function in Enzyme, I get the error of "Enzyme: cannot compute with global variable that doesn't have marked shadow global @d_vars = external addrspace(4) global ptr, align 8.
The issue is associated with a function I am trying to differentiate w.r.t an input variable, and in this function we do a global lookup from this constant variable.
i.e
__constant__ double* d_var;
//this is set somewhere in the code.
double func(...) {
//some calculation steps
double var = d_vars[x];
//some more calculations...
return var*other_var;
}```
and then define and call the __enzyme_autodiffFunc();
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi all,
I was wondering if someone has run into a similar complication, when using constant variable lookups in a function in Enzyme, I get the error of "Enzyme: cannot compute with global variable that doesn't have marked shadow global @d_vars = external addrspace(4) global ptr, align 8.
The issue is associated with a function I am trying to differentiate w.r.t an input variable, and in this function we do a global lookup from this constant variable.
i.e
Beta Was this translation helpful? Give feedback.
All reactions