SWDEV-538195 - Introduce threshold for handler submission (#723)

- When doing device/stream sync, we can submit a handler which may
  introduce some host side delays. Use DEBUG_CLR_BATCH_CPU_SYNC_SIZE to
  batch commands for host wait. Default for HIP is 8 commands.
- Investigation is underway in ROCr but need to address this for now in
  HIP runtime.
Cette révision appartient à :
Kudchadker, Saleel a créé et GitHub a révisé 2025-08-06 20:34:42 -07:00
1 Parent cd46294b31
révision 9b045922a8
8 fichiers modifiés
+40 -6

Aucun fichier ne correspond à votre recherche

+3
Voir le fichier
@@ -251,6 +251,9 @@ class HostQueue : public CommandQueue {
//! Get the submitted batch
Command* GetSubmissionBatch() const { return head_; }
//! Get the current batch size
size_t GetSubmissionBatchSize() const { return size_; }
//! Insert a command into the linked list of submitted commands
void FormSubmissionBatch(Command* command) {
// Insert the command to the linked list.