EnzymeAD / Enzyme

High-performance automatic differentiation of LLVM and MLIR.
https://enzyme.mit.edu
Other
1.2k stars 100 forks source link

Adding __cxa_thread_atexit_impl #1934

Closed jpmedinagl closed 2 weeks ago

jpmedinagl commented 2 weeks ago

Attemping to add __cxa_thread_atexit_impl.

We ran into an issue using enzyme and we got this error message, we're not sure if the line-change will fix it.

error: <unknown>:0:0: in function preprocess__ZN3std3sys6common12thread_local10fast_local12Key$LT$T$GT$14try_initialize17h538e209caf245dc5E.llvm.5507895982844929938 ptr (ptr, ptr): Enzyme: cannot compute with global variable that doesn't have marked shadow global
@__cxa_thread_atexit_impl = extern_weak global i8
jpmedinagl commented 2 weeks ago

@wsmoses It seems that this did not fix the issue. Do you have an idea of this issue or why it is happening?

wsmoses commented 2 weeks ago

Do you have a link to the full issue/reprodicer?