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:
committed by
Sourabh Betigeri
parent
5c360446bf
commit
c90c7a5cf1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user