I recently updated my Enzyme package version from 0.13.68 (fully working) and incurred a new kind of bug I haven’t encountered before. I verified this bug exists in all versions of Enzyme since 0.13.69 inclusive. I am not posting a MWE right now since my code base is pretty involved and I haven’t been able to find the breaking point, but I am happy to work with Enzyme devs (probably @wsmoses) to make a MWE/find the issue. I would just ask for ideas on what sort of code to look for, or some kind of command tool along the lines of @code_warntype to help me find the problem area.
Here is the error I’m getting:
LLVM ERROR: SmallVector unable to grow. Requested capacity (4294967296) is larger than maximum value for size type (4294967295)
in expression starting at /Users/daningburg/Documents/Code/nuclear-diffprog/nn_xsec.jl:75
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 457427566 (Pool: 457418966; Big: 8600); GC: 199
Abort trap: 6
My code involved functions such as spherical harmonics, spherical Bessel functions, and clebsch-gordan coefficients. I’m using Enzyme to take the gradient of the loss with respect to the parameters of a Lux neural network.