SWDEV-502365 - Track last used command

- This change tries to save extra synchronization packets we may insert
  as we didnt track the completion signals for every command. We track
the current enqueued command until it exits the enqueue stage. We also
record the exit scope to know if we flushed the caches
- Handle correct release scopes and store completion signal as HW events
- Use a new finishCommand implementation to only wait for the command
  passed as the argument

Change-Id: Ie4350c5dd24f5d48dfa6ccbabd892f0544caadcc
このコミットが含まれているのは:
Saleel Kudchadker
2024-12-03 23:45:31 +00:00
コミット e03e4f3b5d
12個のファイルの変更148行の追加92行の削除
+1 -1
ファイルの表示
@@ -175,7 +175,7 @@ hipError_t Event::streamWaitCommand(amd::Command*& command, hip::Stream* stream)
command = new amd::Marker(*stream, kMarkerDisableFlush, eventWaitList);
// Since we only need to have a dependency on an existing event,
// we may not need to flush any caches.
command->setEventScope(amd::Device::kCacheStateIgnore);
command->setCommandEntryScope(amd::Device::kCacheStateIgnore);
if (command == NULL) {
return hipErrorOutOfMemory;