Lds Optimization

Optimize LDS (Local Data Share / shared memory) access patterns in FlyDSL GPU kernels. Diagnose bank conflicts and high lgkmcnt stalls from ATT trace data, then apply swizzle or padding layouts to eliminate conflicts. Also increase the distance between LDS write and subsequent LDS read to hide LDS latency. LDS read preceded by write always requires a sync (s_waitcnt lgkmcnt or s_barrier). Use when trace analysis shows ds_read/ds_write/lgkmcnt as a bottleneck. Usage: /lds-optimization

rocm 82cd030 22.4 KB Updated

File contents

rocm/flydsl/tree/main/.claude/skills/lds-optimization commit 82cd030b62

Frequently asked questions

npx skillmds@latest add rocm/lds-optimization