File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 6868 Core. Compiler. code_cache (interp:: EnzymeInterpreter ) = WorldView (interp. code_cache, interp. world)
6969end
7070
71+ @static if HAS_INTEGRATED_CACHE
72+ function CC. CodeInstance (interp:: EnzymeInterpreter , result:: CC.InferenceResult ,
73+ valid_worlds:: CC.WorldRange )
74+ ci = @invoke CC. CodeInstance (interp:: CC.AbstractInterpreter , result:: CC.InferenceResult ,
75+ valid_worlds:: CC.WorldRange )
76+
77+ # FIXME : Enzyme embeds global pointers and other fun things directly
78+ # So forbid the caching of the results.
79+ ci. relocatability = 0x0
80+ return ci
81+ end
82+ end
83+
7184# No need to do any locking since we're not putting our results into the runtime cache
7285Core. Compiler. lock_mi_inference (interp:: EnzymeInterpreter , mi:: MethodInstance ) = nothing
7386Core. Compiler. unlock_mi_inference (interp:: EnzymeInterpreter , mi:: MethodInstance ) = nothing
You can’t perform that action at this time.
0 commit comments