SWDEV-301667 - Improve logging

Change-Id: I3fa06791b7ac73d84b8a9586e6b3435fa8858d25


[ROCm/clr commit: 8c84a20b01]
This commit is contained in:
Saleel Kudchadker
2024-09-18 05:39:41 +00:00
parent f19260d568
commit d5c396e820
4 changed files with 25 additions and 21 deletions
+3
View File
@@ -132,6 +132,9 @@ int getDeviceID(amd::Context& ctx) {
// ================================================================================================
hip::Stream* getNullStream(bool wait ) {
Device* device = getCurrentDevice();
if (device == nullptr) {
LogError("Invalid device");
}
return device ? device->NullStream(wait) : nullptr;
}