CliMA / CliMA/ClimaCore.jl

`weighted_dss!(::NTuple{N,<:Pair}) where {N}` often fails inference

Open
#1,639 0 comments 0 reactions 0 assignees View on GitHub
Allocations bug Inference
Dominant language
Julia
Stars
117
Forks
19
Avg merge
3d 4h
Merged PRs (30d)
41

Description

It seems that when `weighted_dss!` is called with `Pair`s, it seems to not be able to infer the inputs (observed in the ClimaAtmos default perf target flame graph):

Screen Shot 2024-03-05 at 2 03 01 PM

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the definition and call sites of weighted_dss!(::NTuple{N,<:Pair}) where {N}, then reproduce the inference failure in the ClimaAtmos default performance target referenced by the flame graph. Done means calls using Pairs no longer show the reported inference problem and the relevant performance behavior is verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
hpc, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.