SWDEV-306940 - Fix hipamd errors/warnings found by CppCheck

Change-Id: Ia93d4f5262ea4269d8031edbfd27033b887e5300
Este commit está contenido en:
Satyanvesh Dittakavi
2021-11-29 17:53:36 +00:00
padre c792ff7bfc
commit 6e562f4d83
Se han modificado 21 ficheros con 41 adiciones y 56 borrados
+1 -1
Ver fichero
@@ -94,9 +94,9 @@ amd::HostQueue* getQueue(hipStream_t stream) {
if (stream == nullptr) {
return getNullStream();
} else {
constexpr bool WaitNullStreamOnly = true;
amd::HostQueue* queue = reinterpret_cast<hip::Stream*>(stream)->asHostQueue();
if (!(reinterpret_cast<hip::Stream*>(stream)->Flags() & hipStreamNonBlocking)) {
constexpr bool WaitNullStreamOnly = true;
iHipWaitActiveStreams(queue, WaitNullStreamOnly);
}
return queue;