How accel-sim/accel-sim-framework works
Accel-Sim captures real GPU execution as traces, parses and replays those traces in a cycle-level GPU model, and provides tools to compare simulated results with hardware measurements. The graph preserves the documented tracer, Hopper-aware simulation, compressed-trace support, PyTorch/vLLM hooks, GPUVision profiling, correlation, tuning, and power-model capabilities. The simulator’s entry and trace-processing links are supported by sampled source; several broader capability links rely on the README because their implementations were not sampled.
Main entry points: gpu-simulator GPU performance model · tracer_nvbit NVBit tracer · accel-sim.cc Simulation framework · trace_driven.cc Trace-driven frontend
Components 21
Trace capture
- PyTorch/vLLM hooks
util/tracer_nvbit/others/torch_hook/pytorch_profiler.py - NVBit tracer
util/tracer_nvbit - Trace processing
util/tracer_nvbit/tracer_tool/traces-processing/post-traces-processing.cpp - Compressed trace format
util/tracer_nvbit/tracer_tool/tracez_format.h - Trace disassembler
util/tracer_nvbit/others/traceDsm_tool/traceDsm.cpp
GPU simulation
- Simulator entry
gpu-simulator/main.cc - Simulation framework
gpu-simulator/accel-sim.cc - Trace parser
gpu-simulator/trace-parser/trace_parser.cc - Warp trace reader
gpu-simulator/trace-parser/warp_trace_stream.h - Trace-driven frontend
gpu-simulator/trace-driven/trace_driven.cc - SASS opcode models
gpu-simulator/ISA_Def/trace_opcode.h - GPU performance model
gpu-simulator - AccelWattch power model
util/accelwattch
Validation and profiling
- GPUVision profiling
util/hw_stats - Hardware statistics
util/accelwattch/accelwattch_hw_profiler/gen_hw_perf_csv.py
Analysis and tuning
- Hardware correlator
util/plotting/plot-correlation.py - Metric mappings
util/plotting/correl_mappings.py - Configuration tuner
util/tuner/tuner.py - Simulation job runner
util/job_launching/run_simulations.py
Other components
- Workload user
- NVIDIA GPU
Connections 23
- Workload user → PyTorch/vLLM hooks: traces model layers
- PyTorch/vLLM hooks → NVBit tracer: hooks NVBit
util/tracer_nvbit/others/torch_hook/__init__.py - Workload user → NVBit tracer: traces workload
- NVIDIA GPU → NVBit tracer: executes instrumented workload
- NVBit tracer → Trace processing: produces traces
util/tracer_nvbit/tracer_tool/traces-processing/post-traces-processing.cpp - Trace processing → Compressed trace format: writes compressed traces
util/tracer_nvbit/tracer_tool/tracez_format.h - Compressed trace format → Trace disassembler: disassembles
util/tracer_nvbit/tracer_tool/tracez_format.h - Workload user → Simulator entry: starts simulation
gpu-simulator/main.cc - Simulator entry → Simulation framework: runs simulation loop
gpu-simulator/main.cc - Simulation framework → Trace parser: parses trace inputs
- Trace parser → Warp trace reader: reads compressed warps
gpu-simulator/trace-parser/warp_trace_stream.h - Simulation framework → Trace-driven frontend: replays traces
- Trace-driven frontend → SASS opcode models: maps SASS instructions
gpu-simulator/trace-driven/trace_driven.cc - Trace-driven frontend → GPU performance model: drives cycle model
gpu-simulator/trace-driven/trace_driven.cc - GPU performance model → AccelWattch power model: models power
- NVIDIA GPU → GPUVision profiling: provides cycle-level profiling
- NVIDIA GPU → Hardware statistics: provides hardware metrics
- GPU performance model → Hardware correlator: supplies simulation results
- Hardware statistics → Hardware correlator: supplies measured metrics
- Hardware correlator → Metric mappings: uses metric mappings
util/plotting/plot-correlation.py - Workload user → Simulation job runner: launches experiments
- Simulation job runner → GPU performance model: runs configured simulations
- Workload user → Configuration tuner: tunes configuration