From 5f95e8d5ff0f808937291eb4886e75cf18e1449a Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 20 Aug 2015 15:36:47 -0400 Subject: [PATCH] P4 to Git Change 1182841 by jatang@jatang-opencl-hsa-stg1 on 2015/08/20 15:24:51 EPR #423121 - Retrieve thread trace results for all SEs. Affected files ... ... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_thread_trace_amd.cpp#6 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gputhreadtrace.cpp#7 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.cpp#76 edit ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLContext.h#48 edit ... //depot/stg/opencl/drivers/opencl/tests/ocltst/module/runtime/OCLThreadTrace.cpp#9 edit [ROCm/clr commit: 05365086fefa0acaa6f479c65c43cf01ed5c2802] --- projects/clr/opencl/api/opencl/amdocl/cl_thread_trace_amd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/projects/clr/opencl/api/opencl/amdocl/cl_thread_trace_amd.cpp b/projects/clr/opencl/api/opencl/amdocl/cl_thread_trace_amd.cpp index f1e1a4ca91..99322c0400 100644 --- a/projects/clr/opencl/api/opencl/amdocl/cl_thread_trace_amd.cpp +++ b/projects/clr/opencl/api/opencl/amdocl/cl_thread_trace_amd.cpp @@ -223,9 +223,9 @@ RUNTIME_ENTRY(cl_int, clGetThreadTraceInfoAMD, ( if (devThreadTrace == NULL) { return CL_INVALID_OPERATION; } - unsigned int bufSize2Se[2] = {0}; + unsigned int bufSize2Se[4] = {0}; - if (!devThreadTrace->info(thread_trace_info_param,bufSize2Se,seNum)) { + if (!devThreadTrace->info(thread_trace_info_param, bufSize2Se, seNum)) { return CL_INVALID_VALUE; } return amd::clGetInfo(bufSize2Se,