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
[ROCm/clr commit: e03e4f3b5d]
이 커밋은 다음에 포함됨:
1 부모
77840f1cb9
커밋
c8f39ec2b0
12 파일이 변경됨
+148
-92
검색과 일치하는 파일 없음
@@ -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;
|
||||
|
||||
새 이슈에서 참조
사용자 차단