From cadb15165e6c4e418f0ccb232ba19f73639b230f Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 24 May 2018 18:12:49 -0400 Subject: [PATCH] P4 to Git Change 1559366 by gandryey@gera-w8 on 2018/05/24 18:06:45 SWDEV-79445 - OCL generic changes and code clean-up - Combine validateMemory() and arguments capture() under a single function. Rename validateMemory() in NDRangeKernelCommand class to captureAndValidate() http://ocltc.amd.com/reviews/r/14964/ Affected files ... ... //depot/stg/opencl/drivers/opencl/api/hip/hip_module.cpp#10 edit ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_execute.cpp#26 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.cpp#87 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/command.hpp#90 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.cpp#28 edit ... //depot/stg/opencl/drivers/opencl/runtime/platform/kernel.hpp#22 edit --- api/hip/hip_module.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/hip/hip_module.cpp b/api/hip/hip_module.cpp index 0feefad7a3..435fe53af8 100644 --- a/api/hip/hip_module.cpp +++ b/api/hip/hip_module.cpp @@ -190,8 +190,8 @@ hipError_t hipModuleLaunchKernel(hipFunction_t f, return hipErrorOutOfMemory; } - // Make sure we have memory for the command execution - if (CL_SUCCESS != command->validateMemory()) { + // Capture the kernel arguments + if (CL_SUCCESS != command->captureAndValidate()) { delete command; return hipErrorMemoryAllocation; }