Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1568,6 +1568,9 @@ AICORE PTO_INLINE void Run(
}
#endif
}
// Publish all output and persistent-state stores before the next decode
// invocation can consume the in-place Conv/SSM caches.
mega_gdn_decode_pto::SyncAllAiv();
#endif
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,14 @@ AICORE PTO_INLINE void Run(
}
}
#endif

// Publish output and checkpoint stores before the next MTP invocation can
// consume the updated Conv/SSM state.
#if defined(PTO_NPU_ARCH_A5)
SyncAllMixA5();
#elif defined(__DAV_VEC__) || defined(__DAV_C220_VEC__)
mega_gdn_decode_pto::SyncAllAiv();
#endif
}

} // namespace mega_gdn_mtp_decode_pto