We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 995d6ba commit dffa490Copy full SHA for dffa490
1 file changed
src/io/xgmi/hip_resource_pool.cpp
@@ -37,10 +37,14 @@ StreamPool::StreamPool(int numStreamsPerDevice) : numStreamsPerDevice_(numStream
37
}
38
39
StreamPool::~StreamPool() {
40
+ hipError_t err;
41
for (auto& deviceEntry : streams_) {
42
for (auto stream : deviceEntry.second) {
43
if (stream != nullptr) {
- hipStreamDestroy(stream);
44
+ err = hipStreamDestroy(stream);
45
+ if (err != hipSuccess) {
46
+ MORI_IO_ERROR("StreamPool: Failed to destroy stream: {}", hipGetErrorString(err));
47
+ }
48
49
50
0 commit comments