Disable flush on marker

Change-Id: I04d0fd995fb4b29a6bc372e1543902a053017d6a


[ROCm/hip commit: 44c1df802e]
This commit is contained in:
German Andryeyev
2020-06-19 18:04:25 -04:00
committed by Saleel Kudchadker
parent 9c6dbda74b
commit f490ef4c87
3 changed files with 8 additions and 5 deletions
+2 -2
View File
@@ -161,7 +161,7 @@ void iHipWaitActiveStreams(amd::HostQueue* blocking_queue, bool wait_null_stream
// Check if we have to wait anything
if (eventWaitList.size() > 0) {
amd::Command* command = new amd::Marker(*blocking_queue, false, eventWaitList);
amd::Command* command = new amd::Marker(*blocking_queue, kMarkerDisableFlush, eventWaitList);
if (command != nullptr) {
command->enqueue();
command->release();
@@ -322,7 +322,7 @@ hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback
amd::Command* command = hostQueue->getLastQueuedCommand(true);
if (command == nullptr) {
amd::Command::EventWaitList eventWaitList;
command = new amd::Marker(*hostQueue, false, eventWaitList);
command = new amd::Marker(*hostQueue, kMarkerDisableFlush, eventWaitList);
command->enqueue();
}
amd::Event& event = command->event();