Package evaluation to test FunctionWrappersWrappers on Julia 1.12.7-DEV.43 (fe4faaea78*) started at 2026-06-22T01:57:40.568 ################################################################################ # Set-up # Installing PkgEval dependencies (TestEnv)... Activating project at `~/.julia/environments/v1.12` Set-up completed after 9.93s ################################################################################ # Installation # Installing FunctionWrappersWrappers... Resolving package versions... Installed FunctionWrappers ───────── v1.1.3 Installed TruncatedStacktraces ───── v1.4.0 Installed FunctionWrappersWrappers ─ v1.9.1 Installed MacroTools ─────────────── v0.5.16 Installed Preferences ────────────── v1.5.2 Installed PrecompileTools ────────── v1.3.4 Updating `~/.julia/environments/v1.12/Project.toml` [77dc65aa] + FunctionWrappersWrappers v1.9.1 Updating `~/.julia/environments/v1.12/Manifest.toml` [069b7b12] + FunctionWrappers v1.1.3 [77dc65aa] + FunctionWrappersWrappers v1.9.1 [1914dd2f] + MacroTools v0.5.16 [aea7be01] + PrecompileTools v1.3.4 [21216c6a] + Preferences v1.5.2 [781d530d] + TruncatedStacktraces v1.4.0 [2a0f44e3] + Base64 v1.11.0 [ade2ca70] + Dates v1.11.0 [b77e0a4c] + InteractiveUtils v1.11.0 [ac6e5ff7] + JuliaSyntaxHighlighting v1.12.0 [d6f4376e] + Markdown v1.11.0 [de0858da] + Printf v1.11.0 [f489334b] + StyledStrings v1.11.0 [fa267f1f] + TOML v1.0.3 [4ec0a83e] + Unicode v1.11.0 Installation completed after 5.6s ################################################################################ # Precompilation # Precompiling PkgEval dependencies... Precompiling packages... 5028.6 ms ✓ TestEnv 1 dependency successfully precompiled in 5 seconds. 26 already precompiled. 24 dependencies precompiled but different versions are currently loaded (ArgTools, Base64, Dates, Downloads, JuliaSyntaxHighlighting, LibCURL, LibCURL_jll, LibGit2, LibGit2_jll, LibSSH2_jll, Logging, Markdown, MozillaCACerts_jll, NetworkOptions, OpenSSL_jll, Pkg, Printf, StyledStrings, TOML, Tar, UUIDs, Zlib_jll, nghttp2_jll and p7zip_jll). Restart julia to access the new versions. Otherwise, 1 dependent of these packages may trigger further precompilation to work with the unexpected versions. Precompiling package dependencies... Precompiling packages... 5061.6 ms ✓ FunctionWrappers 4492.2 ms ✓ OrderedCollections 1095.5 ms ✓ StructIO 822.5 ms ✓ Reexport 897.6 ms ✓ MistyClosures 1185.5 ms ✓ Inflate 1527.4 ms ✓ EnzymeCore 1226.6 ms ✓ Statistics 1074.7 ms ✓ ExprTools 7723.3 ms ✓ MacroTools 1677.3 ms ✓ ADTypes 4247.9 ms ✓ CEnum 1198.9 ms ✓ StaticArraysCore 1108.4 ms ✓ Scratch 4278.0 ms ✓ Compat 1144.4 ms ✓ Preferences 3948.3 ms ✓ DataStructures 4838.0 ms ✓ ObjectFile 1526.7 ms ✓ Statistics → SparseArraysExt 3677.6 ms ✓ SimpleTraits 950.6 ms ✓ ADTypes → ADTypesEnzymeCoreExt 908.6 ms ✓ Compat → CompatLinearAlgebraExt 1065.4 ms ✓ PrecompileTools 1529.3 ms ✓ JLLWrappers 7654.7 ms ✓ DispatchDoctor 1876.5 ms ✓ TruncatedStacktraces 5153.8 ms ✓ ChainRulesCore 18406.8 ms ✓ StaticArrays 6697.2 ms ✓ Enzyme_jll 1500.0 ms ✓ LibTracyClient_jll 5896.4 ms ✓ LLVMExtra_jll 943.6 ms ✓ DispatchDoctor → DispatchDoctorEnzymeCoreExt 6045.7 ms ✓ FunctionWrappersWrappers 4316.0 ms ✓ ChainRulesCore → ChainRulesCoreSparseArraysExt 1330.5 ms ✓ EnzymeCore → EnzymeCoreChainRulesCoreExt 893.6 ms ✓ ADTypes → ADTypesChainRulesCoreExt 1614.2 ms ✓ DispatchDoctor → DispatchDoctorChainRulesCoreExt 4471.0 ms ✓ StaticArrays → StaticArraysChainRulesCoreExt 1580.4 ms ✓ StaticArrays → StaticArraysStatisticsExt 7562.0 ms ✓ ArnoldiMethod 2810.7 ms ✓ Tracy 22231.1 ms ✓ LLVM 14835.0 ms ✓ Graphs 66277.9 ms ✓ GPUCompiler 289781.3 ms ✓ Mooncake 149513.7 ms ✓ Enzyme 11833.2 ms ✓ Mooncake → MooncakeFunctionWrappersExt 9714.7 ms ✓ FunctionWrappersWrappers → FunctionWrappersWrappersMooncakeExt 33557.5 ms ✓ Enzyme → EnzymeStaticArraysExt 31379.2 ms ✓ Enzyme → EnzymeChainRulesCoreExt 32587.1 ms ✓ FunctionWrappersWrappers → FunctionWrappersWrappersEnzymeExt 51 dependencies successfully precompiled in 798 seconds. 32 already precompiled. 24 dependencies precompiled but different versions are currently loaded (ArgTools, Base64, Dates, Downloads, JuliaSyntaxHighlighting, LibCURL, LibCURL_jll, LibGit2, LibGit2_jll, LibSSH2_jll, Logging, Markdown, MozillaCACerts_jll, NetworkOptions, OpenSSL_jll, Pkg, Printf, StyledStrings, TOML, Tar, UUIDs, Zlib_jll, nghttp2_jll and p7zip_jll). Restart julia to access the new versions. Otherwise, 37 dependents of these packages may trigger further precompilation to work with the unexpected versions. Precompilation completed after 840.03s ################################################################################ # Testing # Testing FunctionWrappersWrappers Status `/tmp/jl_u2w4dR/Project.toml` [7da242da] Enzyme v0.13.163 [f151be2c] EnzymeCore v0.8.20 [069b7b12] FunctionWrappers v1.1.3 [77dc65aa] FunctionWrappersWrappers v1.9.1 [da2b9cff] Mooncake v0.5.32 [aea7be01] PrecompileTools v1.3.4 [781d530d] TruncatedStacktraces v1.4.0 [44cfe95a] Pkg v1.12.1 [8dfed614] Test v1.11.0 Status `/tmp/jl_u2w4dR/Manifest.toml` [47edcb42] ADTypes v1.22.0 [ec485272] ArnoldiMethod v0.4.0 [fa961155] CEnum v0.5.0 [d360d2e6] ChainRulesCore v1.26.1 [34da2185] Compat v4.18.1 [864edb3b] DataStructures v0.19.5 [8d63f2c5] DispatchDoctor v0.4.28 [7da242da] Enzyme v0.13.163 [f151be2c] EnzymeCore v0.8.20 [e2ba6199] ExprTools v0.1.10 [069b7b12] FunctionWrappers v1.1.3 [77dc65aa] FunctionWrappersWrappers v1.9.1 [61eb1bfa] GPUCompiler v1.22.4 [86223c79] Graphs v1.14.0 [d25df0c9] Inflate v0.1.5 [692b3bcd] JLLWrappers v1.8.0 [929cbde3] LLVM v9.9.0 [1914dd2f] MacroTools v0.5.16 [dbe65cb8] MistyClosures v2.1.0 [da2b9cff] Mooncake v0.5.32 [d8793406] ObjectFile v0.5.0 ⌅ [bac558e1] OrderedCollections v1.8.2 [aea7be01] PrecompileTools v1.3.4 [21216c6a] Preferences v1.5.2 [189a3867] Reexport v1.2.2 [6c6a2e73] Scratch v1.3.0 [699a6c99] SimpleTraits v0.9.6 [90137ffa] StaticArrays v1.9.18 [1e83bf80] StaticArraysCore v1.4.4 [10745b16] Statistics v1.11.1 [53d494c1] StructIO v0.3.1 [e689c965] Tracy v0.1.6 [781d530d] TruncatedStacktraces v1.4.0 ⌅ [7cc45869] Enzyme_jll v0.0.270+0 [dad2f222] LLVMExtra_jll v0.0.43+1 [ad6e5548] LibTracyClient_jll v0.13.1+0 [0dad84c5] ArgTools v1.1.2 [56f22d72] Artifacts v1.11.0 [2a0f44e3] Base64 v1.11.0 [ade2ca70] Dates v1.11.0 [f43a241f] Downloads v1.7.0 [7b1f6079] FileWatching v1.11.0 [b77e0a4c] InteractiveUtils v1.11.0 [ac6e5ff7] JuliaSyntaxHighlighting v1.12.0 [4af54fe1] LazyArtifacts v1.11.0 [b27032c2] LibCURL v0.6.4 [76f85450] LibGit2 v1.11.0 [8f399da3] Libdl v1.11.0 [37e2e46d] LinearAlgebra v1.12.0 [56ddb016] Logging v1.11.0 [d6f4376e] Markdown v1.11.0 [ca575930] NetworkOptions v1.3.0 [44cfe95a] Pkg v1.12.1 [de0858da] Printf v1.11.0 [9a3f8284] Random v1.11.0 [ea8e919c] SHA v0.7.0 [9e88b42a] Serialization v1.11.0 [2f01184e] SparseArrays v1.12.0 [f489334b] StyledStrings v1.11.0 [fa267f1f] TOML v1.0.3 [a4e569a6] Tar v1.10.0 [8dfed614] Test v1.11.0 [cf7118a7] UUIDs v1.11.0 [4ec0a83e] Unicode v1.11.0 [e66e0078] CompilerSupportLibraries_jll v1.3.0+1 [deac9b47] LibCURL_jll v8.15.0+0 [e37daf67] LibGit2_jll v1.9.0+0 [29816b5a] LibSSH2_jll v1.11.3+1 [14a3606d] MozillaCACerts_jll v2025.11.4 [4536629a] OpenBLAS_jll v0.3.29+0 [458c3c95] OpenSSL_jll v3.5.6+0 [bea87d4a] SuiteSparse_jll v7.8.3+2 [83775a58] Zlib_jll v1.3.1+2 [8e850b90] libblastrampoline_jll v5.15.0+0 [8e850ede] nghttp2_jll v1.64.0+1 [3f19e933] p7zip_jll v17.7.0+0 Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. Testing Running tests... Test Summary: | Pass Total Time FunctionWrappersWrappers.jl | 48 48 7.0s Test Summary: | Pass Total Time BigFloat support | 5 5 0.6s Test Summary: | Pass Total Time UnionAll return types | 2 2 0.5s Test Summary: | Pass Total Time Enzyme extension | 65 65 5m23.8s Mooncake through loss function: Error During Test at /home/pkgeval/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:36 Got exception outside of a @test Mooncake failed to differentiate the following method: │ (::var"#loss#loss##0")(x) │ │ Caused by: │ Unable to translate the intrinsic Val{Core.Intrinsics.llvmcall}() into a │ regular Julia function. Please see │ github.com/chalk-lab/Mooncake.jl/issues/208 for more discussion. │ │ MooncakeRuleCompilationError: an error occurred while Mooncake was compiling a │ rule to differentiate something. If the `caused by` error message below does │ not make it clear to you how the problem can be fixed, please open an issue │ at github.com/chalk-lab/Mooncake.jl describing your problem. └ @ Main ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:41 To replicate this error run the following: Mooncake.build_rrule(Mooncake.MooncakeInterpreter(Mooncake.ReverseMode), Tuple{var"#loss#loss##0"{FunctionWrappersWrapper{Tuple{FunctionWrappers.FunctionWrapper{Float64, Tuple{Vector{Float64}}}}, AllowNonIsBits, FunctionWrappersWrappers.SingleCacheStorage}}, Vector{Float64}}; debug_mode=false) Note that you may need to `using` some additional packages if not all of the names printed in the above signature are available currently in your environment. Stacktrace: [1] build_derived_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any, sig::Any, debug_mode::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1269 [2] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any; debug_mode::Bool, silence_debug_messages::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1197 [3] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1183 [4] build_rrule(::Function, ::Vararg{Any}; kwargs::@Kwargs{}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1149 [5] build_rrule(::Function, ::Vector{Float64}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1147 [6] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:38 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [8] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:42 [inlined] [9] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [10] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [12] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [inlined] [13] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [14] top-level scope @ none:6 [15] eval(m::Module, e::Any) @ Core ./boot.jl:489 [16] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [17] _start() @ Base ./client.jl:550 caused by: Mooncake.IntrinsicsWrappers.MissingIntrinsicWrapperException("Unable to translate the intrinsic Val{Core.Intrinsics.llvmcall}() into a regular Julia function. Please see github.com/chalk-lab/Mooncake.jl/issues/208 for more discussion.") Stacktrace: [1] translate(f::Val{Core.Intrinsics.llvmcall}) @ Mooncake.IntrinsicsWrappers ~/.julia/packages/Mooncake/ApgjT/src/rules/builtins.jl:128 [2] lift_intrinsic(::Core.IntrinsicFunction, ::Core.SSAValue, ::GlobalRef, ::Vararg{Any}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:259 [3] intrinsic_to_function @ ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:250 [inlined] [4] normalise!(ir::Compiler.IRCode, spnames::Vector{Symbol}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:31 [5] generate_ir(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Type; debug_mode::Bool, do_inline::Bool, do_optimize::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1338 [6] build_derived_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any, sig::Any, debug_mode::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1239 [7] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any; debug_mode::Bool, silence_debug_messages::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1197 [8] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1183 [9] build_rrule(::Function, ::Vararg{Any}; kwargs::@Kwargs{}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1149 [10] build_rrule(::Function, ::Vector{Float64}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1147 [11] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:38 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [13] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:42 [inlined] [14] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [15] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [17] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [inlined] [18] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [19] top-level scope @ none:6 [20] eval(m::Module, e::Any) @ Core ./boot.jl:489 [21] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [22] _start() @ Base ./client.jl:550 Mooncake with wrapped callable struct: Error During Test at /home/pkgeval/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:48 Got exception outside of a @test Mooncake failed to differentiate the following method: │ (::var"#loss#loss##1")(p) │ │ Caused by: │ Unable to translate the intrinsic Val{Core.Intrinsics.llvmcall}() into a │ regular Julia function. Please see │ github.com/chalk-lab/Mooncake.jl/issues/208 for more discussion. │ │ MooncakeRuleCompilationError: an error occurred while Mooncake was compiling a │ rule to differentiate something. If the `caused by` error message below does │ not make it clear to you how the problem can be fixed, please open an issue │ at github.com/chalk-lab/Mooncake.jl describing your problem. └ @ Main ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:73 To replicate this error run the following: Mooncake.build_rrule(Mooncake.MooncakeInterpreter(Mooncake.ReverseMode), Tuple{var"#loss#loss##1"{FunctionWrappersWrapper{Tuple{FunctionWrappers.FunctionWrapper{Nothing, Tuple{Vector{Float64}, Vector{Float64}, Vector{Float64}}}}, AllowNonIsBits, FunctionWrappersWrappers.SingleCacheStorage}}, Vector{Float64}}; debug_mode=false) Note that you may need to `using` some additional packages if not all of the names printed in the above signature are available currently in your environment. Stacktrace: [1] build_derived_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any, sig::Any, debug_mode::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1269 [2] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any; debug_mode::Bool, silence_debug_messages::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1197 [3] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1183 [4] build_rrule(::Function, ::Vararg{Any}; kwargs::@Kwargs{}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1149 [5] build_rrule(::Function, ::Vector{Float64}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1147 [6] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:52 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [8] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:80 [inlined] [9] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [10] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [12] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [inlined] [13] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [14] top-level scope @ none:6 [15] eval(m::Module, e::Any) @ Core ./boot.jl:489 [16] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [17] _start() @ Base ./client.jl:550 caused by: Mooncake.IntrinsicsWrappers.MissingIntrinsicWrapperException("Unable to translate the intrinsic Val{Core.Intrinsics.llvmcall}() into a regular Julia function. Please see github.com/chalk-lab/Mooncake.jl/issues/208 for more discussion.") Stacktrace: [1] translate(f::Val{Core.Intrinsics.llvmcall}) @ Mooncake.IntrinsicsWrappers ~/.julia/packages/Mooncake/ApgjT/src/rules/builtins.jl:128 [2] lift_intrinsic(::Core.IntrinsicFunction, ::Core.SSAValue, ::GlobalRef, ::Vararg{Any}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:259 [3] intrinsic_to_function @ ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:250 [inlined] [4] normalise!(ir::Compiler.IRCode, spnames::Vector{Symbol}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:31 [5] generate_ir(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Type; debug_mode::Bool, do_inline::Bool, do_optimize::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1338 [6] build_derived_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any, sig::Any, debug_mode::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1239 [7] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any; debug_mode::Bool, silence_debug_messages::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1197 [8] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1183 [9] build_rrule(::Function, ::Vararg{Any}; kwargs::@Kwargs{}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1149 [10] build_rrule(::Function, ::Vector{Float64}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1147 [11] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:52 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [13] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:80 [inlined] [14] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [15] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [17] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [inlined] [18] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [19] top-level scope @ none:6 [20] eval(m::Module, e::Any) @ Core ./boot.jl:489 [21] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [22] _start() @ Base ./client.jl:550 Mooncake in-place function: Error During Test at /home/pkgeval/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:89 Got exception outside of a @test Mooncake failed to differentiate the following method: │ (::var"#loss#loss##2")(p) │ │ Caused by: │ Unable to translate the intrinsic Val{Core.Intrinsics.llvmcall}() into a │ regular Julia function. Please see │ github.com/chalk-lab/Mooncake.jl/issues/208 for more discussion. │ │ MooncakeRuleCompilationError: an error occurred while Mooncake was compiling a │ rule to differentiate something. If the `caused by` error message below does │ not make it clear to you how the problem can be fixed, please open an issue │ at github.com/chalk-lab/Mooncake.jl describing your problem. └ @ Main ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:102 To replicate this error run the following: Mooncake.build_rrule(Mooncake.MooncakeInterpreter(Mooncake.ReverseMode), Tuple{var"#loss#loss##2"{FunctionWrappersWrapper{Tuple{FunctionWrappers.FunctionWrapper{Nothing, Tuple{Vector{Float64}, Vector{Float64}, Vector{Float64}}}}, AllowNonIsBits, FunctionWrappersWrappers.SingleCacheStorage}}, Vector{Float64}}; debug_mode=false) Note that you may need to `using` some additional packages if not all of the names printed in the above signature are available currently in your environment. Stacktrace: [1] build_derived_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any, sig::Any, debug_mode::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1269 [2] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any; debug_mode::Bool, silence_debug_messages::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1197 [3] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1183 [4] build_rrule(::Function, ::Vararg{Any}; kwargs::@Kwargs{}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1149 [5] build_rrule(::Function, ::Vector{Float64}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1147 [6] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:91 [7] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [8] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:109 [inlined] [9] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [10] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [11] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [12] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [inlined] [13] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [14] top-level scope @ none:6 [15] eval(m::Module, e::Any) @ Core ./boot.jl:489 [16] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [17] _start() @ Base ./client.jl:550 caused by: Mooncake.IntrinsicsWrappers.MissingIntrinsicWrapperException("Unable to translate the intrinsic Val{Core.Intrinsics.llvmcall}() into a regular Julia function. Please see github.com/chalk-lab/Mooncake.jl/issues/208 for more discussion.") Stacktrace: [1] translate(f::Val{Core.Intrinsics.llvmcall}) @ Mooncake.IntrinsicsWrappers ~/.julia/packages/Mooncake/ApgjT/src/rules/builtins.jl:128 [2] lift_intrinsic(::Core.IntrinsicFunction, ::Core.SSAValue, ::GlobalRef, ::Vararg{Any}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:259 [3] intrinsic_to_function @ ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:250 [inlined] [4] normalise!(ir::Compiler.IRCode, spnames::Vector{Symbol}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/ir_normalisation.jl:31 [5] generate_ir(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Type; debug_mode::Bool, do_inline::Bool, do_optimize::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1338 [6] build_derived_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any, sig::Any, debug_mode::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1239 [7] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any; debug_mode::Bool, silence_debug_messages::Bool) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1197 [8] build_rrule(interp::Mooncake.MooncakeInterpreter{Mooncake.DefaultCtx, Mooncake.ReverseMode}, sig_or_mi::Any) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1183 [9] build_rrule(::Function, ::Vararg{Any}; kwargs::@Kwargs{}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1149 [10] build_rrule(::Function, ::Vector{Float64}) @ Mooncake ~/.julia/packages/Mooncake/ApgjT/src/interpreter/reverse_mode.jl:1147 [11] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:91 [12] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [13] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/mooncake_tests.jl:109 [inlined] [14] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [15] top-level scope @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [16] macro expansion @ /opt/julia/share/julia/stdlib/v1.12/Test/src/Test.jl:1777 [inlined] [17] macro expansion @ ~/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:65 [inlined] [18] include(mapexpr::Function, mod::Module, _path::String) @ Base ./Base.jl:307 [19] top-level scope @ none:6 [20] eval(m::Module, e::Any) @ Core ./boot.jl:489 [21] exec_options(opts::Base.JLOptions) @ Base ./client.jl:283 [22] _start() @ Base ./client.jl:550 Test Summary: | Pass Error Total Time Mooncake extension | 7 3 10 3m32.5s Mooncake reverse mode - single arg | 2 2 3m06.4s Mooncake reverse mode - multi arg | 3 3 2.9s Mooncake with trig functions | 2 2 0.2s Mooncake through loss function | 1 1 5.1s Mooncake with wrapped callable struct | 1 1 0.7s Mooncake in-place function | 1 1 0.5s RNG of the outermost testset: Random.Xoshiro(0x418563e8dd5fea87, 0x7b67b46d60099ee0, 0xfa6ecd11e02e9933, 0xfff71bdcd9ae5db9, 0x97a84594522a5535) ERROR: LoadError: Some tests did not pass: 7 passed, 0 failed, 3 errored, 0 broken. in expression starting at /home/pkgeval/.julia/packages/FunctionWrappersWrappers/K5pcW/test/runtests.jl:63 Testing failed after 565.78s ERROR: LoadError: Package FunctionWrappersWrappers errored during testing Stacktrace: [1] pkgerror(msg::String) @ Pkg.Types /opt/julia/share/julia/stdlib/v1.12/Pkg/src/Types.jl:68 [2] test(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; coverage::Bool, julia_args::Cmd, test_args::Cmd, test_fn::Nothing, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool) @ Pkg.Operations /opt/julia/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:2538 [3] test @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/Operations.jl:2387 [inlined] [4] test(ctx::Pkg.Types.Context, pkgs::Vector{PackageSpec}; coverage::Bool, test_fn::Nothing, julia_args::Cmd, test_args::Cmd, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool, kwargs::@Kwargs{io::IOContext{IO}}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:552 [5] test(pkgs::Vector{PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:169 [6] test(pkgs::Vector{String}; kwargs::@Kwargs{julia_args::Cmd}) @ Pkg.API /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:157 [7] test @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:157 [inlined] [8] #test#81 @ /opt/julia/share/julia/stdlib/v1.12/Pkg/src/API.jl:156 [inlined] [9] top-level scope @ /PkgEval.jl/scripts/evaluate.jl:223 [10] include(mod::Module, _path::String) @ Base ./Base.jl:306 [11] exec_options(opts::Base.JLOptions) @ Base ./client.jl:317 [12] _start() @ Base ./client.jl:550 in expression starting at /PkgEval.jl/scripts/evaluate.jl:214 PkgEval failed after 1439.48s: package tests unexpectedly errored