SWDEV-301667 - Improve logging
Change-Id: I3fa06791b7ac73d84b8a9586e6b3435fa8858d25
[ROCm/clr commit: 8c84a20b01]
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user