How dream-lab/pagoda works
Pagoda studies DNN inference and training performance on Jetson-class accelerators. Its main workflow prepares ONNX models, estimates FLOPs and memory traffic analytically, profiles workloads with Nsight Compute, then processes and visualizes measurements for roofline and batch-size analysis. The graph also preserves the documented ERT analysis capability. Source excerpts support the analytical estimators and CSV processing; connections involving notebooks and automation are based on README descriptions, since those files were not sampled.
Main entry points: model.py Estimate runner · inference_automation.sh NCU automation · ncu_post_processing.py NCU metric processor · create_onnx_models.ipynb ONNX export
Components 16
Model preparation
- ONNX export
src/analysis/create_onnx_models.ipynb - ONNX model
Analytical estimation
- Estimate runner
src/analytical_model/model.py - ONNX estimator
src/analytical_model/estimates.py - LSTM estimator
src/analytical_model/estimates_lstm.py
GPU profiling
- NCU automation
src/scripts/inference_automation.sh - Experiment helper
src/scripts/exp_script.sh - NCU reports
Measurement analysis
- NCU metric processor
src/tools/ncu_post_processing.py - ERT processor
src/tools/ert_method.py - Kernel analysis
src/analysis/ncu-files-analysis.ipynb - Roofline experiments
src/analysis/roofline_batch_size_expt.ipynb - Roofline insights
Other components
- Engineer
- Jetson accelerator
- Nsight Compute
Connections 22
- Engineer → ONNX export: exports models
README.md - ONNX export → ONNX model: creates
README.md - Engineer → Estimate runner: requests estimates
README.md - Estimate runner → ONNX model: loads
src/analytical_model/model.py - Estimate runner → ONNX estimator: delegates
src/analytical_model/model.py - Estimate runner → LSTM estimator: selects for LSTM
src/analytical_model/model.py - ONNX estimator → ONNX model: loads and analyzes
src/analytical_model/estimates.py - LSTM estimator → ONNX model: loads and analyzes
src/analytical_model/estimates_lstm.py - Engineer → NCU automation: runs profiling
README.md - NCU automation → Jetson accelerator: profiles workloads
README.md - NCU automation → Nsight Compute: invokes profiler
README.md - Nsight Compute → NCU reports: produces reports
README.md - Experiment helper → NCU automation: assists experiments
- Engineer → NCU metric processor: processes reports
README.md - NCU metric processor → NCU reports: reads CSV
src/tools/ncu_post_processing.py - Engineer → ERT processor: runs ERT analysis
README.md - Engineer → Kernel analysis: analyzes measurements
README.md - Engineer → Roofline experiments: explores rooflines
README.md - Kernel analysis → NCU reports: analyzes reports
README.md - Roofline experiments → Roofline insights: generates plots
README.md - NCU metric processor → Roofline insights: computes metrics
- ERT processor → Roofline insights: summarizes metrics