EnzymeAD/Enzyme

Track the number of cached/recomputed values using the LLVM statistics macro

Open

#962 opened on Jan 9, 2023

View on GitHub
 (0 comments) (0 reactions) (0 assignees)LLVM (165 forks)github user discovery
good first issue

Repository metrics

Stars
 (1,613 stars)
PR merge metrics
 (Avg merge 3d 2h) (49 merged PRs in 30d)

Description

https://llvm.org/docs/ProgrammersManual.html#id38

#include "llvm/ADT/Statistic.h"

STATISTIC(NumCachedValues, "Number of values cached");
STATISTIC(NumRecomputedValues, "Number of values recomputed");

Other stats to track:

  • GPU gradient accumulation
    • Non-atomic load/store
    • Parallel Reduction
    • Atomic increment
  • Allocation Merging
  • Heap-to-stack (and register)

Contributor guide