stan-dev / stan-dev/math

Reenable more verbose printing of stack

Open
#2,665 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
839
Forks
220
Avg merge
2d 4h
Merged PRs (30d)
14

Description

Description

The method stan::var::print_stack() does currently only print the size of the stack. This was different in the past.
It would be very handy to have more verbose information for debugging the reverse mode call stack.

Expected Output

I have no strong opinion in what exactly should be printed and especially, I can not judge what is doable.
But since the behavior was different in the past one may can restore a similar behavior.

Related discourse:

https://discourse.mc-stan.org/t/current-state-of-stan-print-stack/26248

Current Version:

v4.3.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the implementation of stan::var::print_stack() and review the related Discourse discussion for the historical behavior. Determine what useful reverse-mode call-stack details can be restored; done means print_stack() provides more than the stack size for debugging.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.