AlibabaPAI / torchacc

PyTorch distributed training acceleration framework
Apache License 2.0
32 stars 4 forks source link

Add memory visualization tool #24

Closed lausannel closed 1 month ago

lausannel commented 1 month ago

Add memory visualization tool for buffer assignment of HLO graph. The input for this script will be a file formatted as *-buffer-assignment.txt, such as module_0006.SyncTensorsGraph.26044.sm_8.0_gpu_after_optimizations-buffer-assignment.txt.

Usage:

python tools/plot_mem.py --input {file_name}

Example image: image