SWDEV-301667 - Add separate field for event scope
Change-Id: I0e6b50d1a34b275ea4f1a4c659430c406d9a5a7e
This commit is contained in:
1 parent
5957ff9f7b
commit
aace42cfab
2 files changed
+5
-3
No files matched your search
@@ -209,7 +209,7 @@ hipError_t Event::streamWait(hipStream_t stream, uint flags) {
|
||||
hipError_t Event::recordCommand(amd::Command*& command, amd::HostQueue* queue,
|
||||
uint32_t ext_flags ) {
|
||||
if (command == nullptr) {
|
||||
uint32_t releaseFlags = ((ext_flags == 0) ? flags : ext_flags) &
|
||||
int32_t releaseFlags = ((ext_flags == 0) ? flags : ext_flags) &
|
||||
(hipEventReleaseToSystem | hipEventReleaseToDevice);
|
||||
if (releaseFlags & hipEventReleaseToDevice) {
|
||||
releaseFlags = amd::Device::kCacheStateAgent;
|
||||
@@ -219,7 +219,7 @@ hipError_t Event::recordCommand(amd::Command*& command, amd::HostQueue* queue,
|
||||
releaseFlags = amd::Device::kCacheStateIgnore;
|
||||
}
|
||||
// Always submit a EventMarker.
|
||||
command = new hip::EventMarker(*queue, !kMarkerDisableFlush, releaseFlags);
|
||||
command = new hip::EventMarker(*queue, !kMarkerDisableFlush, true, releaseFlags);
|
||||
}
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user