You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From CliMA/ClimaCore.jl#1602, here is a reproducer where JET misses inference failure. Profile does capture the failure, and the resulting slowdown is observed in a benchmark using BenchmarkTools.
Below is a reproducer that:
clones and preps the environment
a script the JET-tests, profiles using Profile, and benchmarks using BenchmarkTools.
prep environment:
git clone https://github.com/CliMA/ClimaAtmos.jl
cd ClimaAtmos.jl/
git checkout 0eef0e3d8d44a7cfd553d56e55609c1ed0d77e0f
julia --project=perf
using Pkg
Pkg.add(Pkg.PackageSpec(;name="Thermodynamics", rev="1701c9aa474f43814e5d16373606f5ffd0eb6763"))
I'll note that the "fix" to this problem turned out to be a matter of not inlining the call to PhaseEquil in Thermodynamics.jl. Regardless, I was surprised to see JET miss this inference failure.
The text was updated successfully, but these errors were encountered:
From CliMA/ClimaCore.jl#1602, here is a reproducer where JET misses inference failure. Profile does capture the failure, and the resulting slowdown is observed in a benchmark using BenchmarkTools.
Below is a reproducer that:
prep environment:
script:
I'll note that the "fix" to this problem turned out to be a matter of not inlining the call to
PhaseEquil
in Thermodynamics.jl. Regardless, I was surprised to see JET miss this inference failure.The text was updated successfully, but these errors were encountered: