From 32427db878ccf5ef8161e9961203096efc01ff7e Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 2 Aug 2018 02:18:57 -0400 Subject: [PATCH] P4 to Git Change 1588556 by skudchad@skudchad_rocm on 2018/08/02 02:04:15 SWDEV-145570 - [HIP] - Release eStop if it not a nullptr. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#13 edit [ROCm/hip commit: aeaa9b80f49aad6022a43890719efbef586491ea] --- projects/hip/api/hip/hip_module.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/projects/hip/api/hip/hip_module.cpp b/projects/hip/api/hip/hip_module.cpp index fe87f93a7b..23cf47d724 100644 --- a/projects/hip/api/hip/hip_module.cpp +++ b/projects/hip/api/hip/hip_module.cpp @@ -222,6 +222,9 @@ hipError_t ihipModuleLaunchKernel(hipFunction_t f, command->enqueue(); if(stopEvent != nullptr) { + if (eStop->event_ != nullptr) { + eStop->event_->release(); + } eStop->event_ = &command->event(); command->retain(); }