Report null stream creation failure (#152)
Explicitly nulling the pointer causes us to report the error below
instead of keeping a dangling pointer around that will most likely lead
to a subsequent segfault.
[ROCm/clr commit: 199b0f1086]
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
2a39c6a782
Коммит
b3d1ac7232
@@ -39,6 +39,7 @@ hip::Stream* Device::NullStream(bool wait) {
|
||||
// Stream creation might be failed from rcor and in that case, vdev is null.
|
||||
if (null_stream_->vdev() == nullptr) {
|
||||
Stream::Destroy(null_stream_);
|
||||
null_stream_ = nullptr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user