-
Notifications
You must be signed in to change notification settings - Fork 63
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
Differentiate dsyevr_64_
#64
Comments
What happens if you do |
It crash with like over 1k line error for autodiff_no_cassette (this is on another machine on MacOS, I can try it on the Linux machine if needed) 784768, i64 -6940216133781273352, i64 -6832105780228080109, i64 -5841289834741351288, i64 -8696547905883959080, i64 -5989860371902311149, i64 7129149566058721777, i64 8408196149339104217]: {[-1]:Pointer}, intvals: {}
%13 = getelementptr inbounds [256 x i64], [256 x i64]* @_j_const5, i64 0, i64 %12, !dbg !165: {[-1]:Pointer}, intvals: {}
%merge = phi double [ 0x7FF0000000000000, %L44 ], [ 0.000000e+00, %L47 ]: {[-1]:Float@double}, intvals: {}
%35 = icmp sgt i32 %5, -13313, !dbg !211: {[-1]:Integer}, intvals: {}
%10 = fsub contract double %8, %9, !dbg !155: {[-1]:Float@double}, intvals: {}
%8 = fsub contract double %0, %7, !dbg !153: {[-1]:Float@double}, intvals: {}
</analysis>
Illegal updateAnalysis prev:{[-1]:Float@double} new: {[-1]:Integer}
val: %5 = trunc i64 %4 to i32, !dbg !147 origin= %35 = icmp sgt i32 %5, -13313, !dbg !211
Assertion failed: (0 && "Performed illegal updateAnalysis"), function updateAnalysis, file /workspace/srcdir/Enzyme/enzyme/Enzyme/TypeAnalysis/TypeAnalysis.cpp, line 511.
signal (6): Abort trap: 6
in expression starting at REPL[3]:1
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 35817871 (Pool: 35799479; Big: 18392); GC: 38
[1] 19138 abort julia |
Yeah this is primarily a cassette bug and unfortunately doesn't appear to have a good fix without cassette fixing the bug on their side. The with cassette version fails per that bug. The version without cassette means differentiating the bithack internals of exp (which we can, but shouldn't do) |
Having since worked around cassette this now reached the point where it cannot be differentiated due to the following blas function not having a gradient defined:
@reikdas perhaps one to consider after ddot goes through. |
dsyevr_64_
bump. Does Enzyme now support |
I'm not sure why it complains the return type is
Union{}
, the return type of thisfoo
function is quite simple? I gotThe text was updated successfully, but these errors were encountered: