diff --git a/opencl/api/opencl/amdocl/cl_debugger_amd.cpp b/opencl/api/opencl/amdocl/cl_debugger_amd.cpp index 90d884494e..7b1f12f852 100644 --- a/opencl/api/opencl/amdocl/cl_debugger_amd.cpp +++ b/opencl/api/opencl/amdocl/cl_debugger_amd.cpp @@ -690,9 +690,7 @@ RUNTIME_EXIT * * \param device specifies the device to be used * - * \param aqlCodeAddress is the memory points to the returned host memory address for the kernel code - * - * \param aqlCodeSize returns the size of the kernel code + * \param aqlCodeInfo specifies the kernel code and its size * * \return One of the following values: * - CL_SUCCESS if the event occurs before the timeout @@ -701,8 +699,7 @@ RUNTIME_EXIT */ RUNTIME_ENTRY(cl_int, clHwDbgMapKernelCodeAMD, ( cl_device_id device, - cl_ulong * aqlCodeAddress, - cl_uint * aqlCodeSize)) + void * aqlCodeInfo)) { if (!is_valid(device)) { return CL_INVALID_DEVICE; @@ -713,7 +710,7 @@ RUNTIME_ENTRY(cl_int, clHwDbgMapKernelCodeAMD, ( return CL_HWDBG_MANAGER_NOT_AVAILABLE_AMD; } - debugManager->mapKernelCode(aqlCodeAddress, aqlCodeSize); + debugManager->mapKernelCode(aqlCodeInfo); return CL_SUCCESS; } diff --git a/opencl/api/opencl/amdocl/cl_debugger_amd.h b/opencl/api/opencl/amdocl/cl_debugger_amd.h index bd0ef2d487..cbbe743b04 100644 --- a/opencl/api/opencl/amdocl/cl_debugger_amd.h +++ b/opencl/api/opencl/amdocl/cl_debugger_amd.h @@ -666,8 +666,7 @@ extern CL_API_ENTRY cl_int CL_API_CALL clHwDbgGetDispatchDebugInfoAMD( */ extern CL_API_ENTRY cl_int CL_API_CALL clHwDbgMapKernelCodeAMD( cl_device_id /* device */, - cl_ulong * /* aqlCodeAddress */, - cl_uint * /* aqlCodeSize */ + void * /* aqlCodeInfo */ ) CL_API_SUFFIX__VERSION_2_0;