Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I usie a C# wrapper called CLoo to use the OpenCL API. The openCL platform I use is the Intel CPU.

When I run the official Intel sample code (a C/C++ application) then in the VS2010 IntelOpenCL plugin windows (Tools/Cod builder-OpenCL Debugger) I can see the command queue, the API call history etc. So the host side API debugging works. The kernel debugging works too.

When I do the same with CLoo then I can only debug the kernel, but not the host side API. I turned on both the kernel debugging chekcbox (Tools/Code Builder-Options/Basic Settings/Enable OpenCL Kernel Debugging) and also the host side API debugging (Tools/Code Builder-Options/API Debugger/Enable OpenCL API Debuger).

For the Intel C/C++ sample I have seen when I call the first OpenCL API function (clGetPlatformIDs) then a port is opened (56202) by my application and the VS Intel OpenCL plugin connects to it.
I also noticed then the context is create then another port is opened (56203) up by my application and VS connects to it. This must be the kernel debugging port.

My question is when I call the first OpenCL API call (clGetPlatformIDs) with Cloo why does it not open the API debugger port as for the C/C++ application.

As a workaround I have found that one can turn on the logging by using environment variables, but it is not as convenient as VS plugins would be.
INTEL_OCL_DBG_LOG=1
INTEL_OCL_DBG_LOG_FILE=c:\temp\debugger.txt
Posted

1 solution

Your question would probably get answered faster by using the CLoo support links[^].
 
Share this answer
 
Comments
Tamas Ruszkai 10-Sep-14 3:18am    
I guess you are right. I will post this problem there.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900