SWDEV-327967 - Fix Segmentation fault in hipFree
Queue creation and release fails during hipFree causing seg fault
if the null queue was not created until then and there is no
device memory left.
Change-Id: I118b86b58e777dac5415bc9ba0c4e23c986efa7d
[ROCm/clr commit: 4a90c3ccaf]
Этот коммит содержится в:
1 родитель
d29a3ae502
Коммит
6a849eb690
2 files changed
+7
-2
No files matched your search
@@ -101,7 +101,10 @@ hipError_t ihipFree(void *ptr)
|
||||
}
|
||||
} else {
|
||||
// Wait on the device, associated with the current memory object
|
||||
hip::getNullStream(memory_object->getContext())->finish();
|
||||
amd::HostQueue* queue = hip::getNullStream(memory_object->getContext());
|
||||
if (queue != nullptr) {
|
||||
queue->finish();
|
||||
}
|
||||
deviceID = hip::getDeviceID(memory_object->getContext());
|
||||
}
|
||||
hip::Stream::syncNonBlockingStreams(deviceID);
|
||||
|
||||
Reference in new issue
Block a user