SWDEV-274727 - The callback associated with the event was being processed after the event is destroyed. Commit after resolving merge conflict.

Change-Id: Ia7383c83318ca0c2a4f21f7aaf22b1cebd828cf0
This commit is contained in:
Sourabh Betigeri
2021-03-18 10:34:54 -07:00
committad av Sourabh Betigeri
förälder 7600326eb2
incheckning 4223d3ecb4
+3 -1
Visa fil
@@ -96,9 +96,10 @@ int main(int argc, char* argv[]) {
HIPCHECK(hipEventSynchronize(ipc_event));
HIPCHECK(hipEventDestroy(ipc_event));
HIPCHECK(hipMemcpy(C_h, C_d, Nbytes, hipMemcpyDeviceToHost));
#ifndef __HIP_PLATFORM_AMD__
HIPCHECK(hipEventDestroy(ipc_event));
HIPCHECK(hipEventDestroy(start));
HIPCHECK(hipEventDestroy(stop));
#endif
@@ -113,6 +114,7 @@ int main(int argc, char* argv[]) {
// happen in above hipMemcpy(). If hipEventInterprocess is officially
// implemented, we should revisit here and move these back to match cuda
// event behavior.
HIPCHECK(hipEventDestroy(ipc_event));
HIPCHECK(hipEventDestroy(start));
HIPCHECK(hipEventDestroy(stop));
#endif