SWDEV-480209 - Handle GraphExec object release
=> GraphExec instance is destroyed before async launch completes,
destroy after all pending graph launches
=> Remove GraphExec destroy during next sync point(hipStreamSync,
hipDeviceSync etc..)
Change-Id: I4df682aae5787fd6e5240a7be936ce50361345d0
[ROCm/clr commit: f9f995c6d0]
Esse commit está contido em:
commit de
Anusha Godavarthy Surya
pai
c4afce2abc
commit
1a472b9703
@@ -82,7 +82,6 @@ void Stream::Destroy(hip::Stream* stream) {
|
||||
// ================================================================================================
|
||||
bool Stream::terminate() {
|
||||
HostQueue::terminate();
|
||||
ReleaseGraphExec(this);
|
||||
return true;
|
||||
}
|
||||
// ================================================================================================
|
||||
@@ -368,12 +367,6 @@ hipError_t hipStreamSynchronize_common(hipStream_t stream) {
|
||||
}
|
||||
// Wait for the current host queue
|
||||
hip_stream->finish(wait_for_cpu);
|
||||
if (stream == nullptr) {
|
||||
// null stream will sync with other streams.
|
||||
ReleaseGraphExec(hip_stream->DeviceId());
|
||||
} else {
|
||||
ReleaseGraphExec(hip_stream);
|
||||
}
|
||||
// Release freed memory for all memory pools on the device
|
||||
hip_stream->GetDevice()->ReleaseFreedMemory();
|
||||
return hipSuccess;
|
||||
|
||||
Referência em uma Nova Issue
Bloquear um usuário