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]
此提交包含在:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
新增問題並參考
封鎖使用者