Fix elapsed time calculation for null stream
SWDEV-237377 - This fixes time calculation where the event may
be recorded on Null stream and work submitted on other streams
Change-Id: Ie36310dea5cee2fed4a514ed01f04db4b47e571c
[ROCm/hip commit: fb2d7bcd2b]
This commit is contained in:
1 parent
bb268f27fc
commit
3c9945976e
3 files changed
+27
-9
No files matched your search
@@ -458,11 +458,11 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f,
|
||||
command->enqueue();
|
||||
|
||||
if(startEvent != nullptr) {
|
||||
eStart->addMarker(queue, command);
|
||||
eStart->addMarker(queue, command, false);
|
||||
command->retain();
|
||||
}
|
||||
if(stopEvent != nullptr) {
|
||||
eStop->addMarker(queue, command);
|
||||
eStop->addMarker(queue, command, false);
|
||||
command->retain();
|
||||
}
|
||||
command->release();
|
||||
|
||||
Reference in new issue
Block a user