1
votes

I am trying to debug an opencl code with the Intel opencl sdk debugger plugin for visual studio 2008 prof edition.

I am getting a build program error with this code

Err = clBuildProgram(cpProgram, 0, NULL, "-g -s \"C:\Users\Administrator\AppData\Local\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\OpenCL\src\oclVectorAdd\VectorAdd.cl\"", NULL, NULL);

Can anybody help me ?

My device type is CPU.. I7 system..

2
What does your kernel look like? What exact error text are you getting? Were you able to run a simple OpenCL kernel (such as SampleCL) on your system? - KLee1
i can run a simple kernel when i use errNum=(clBuildProgram(program, 0, NULL, NULL, NULL, NULL)); but i get a build error code -11 when i use Err = clBuildProgram(cpProgram, 0, NULL, "-g -s \"C:\Users\Administrator\AppData\Local\NVIDIA Corporation\NVIDIA GPU Computing SDK 4.2\OpenCL\src\oclVectorAdd\VectorAdd.cl\"", NULL, NULL); - sameer revankar
The -g and -s flags are not supported by OpenCL. Why do you have them? - KLee1

2 Answers

0
votes

Perhaps you need to uninstall NVIDIA SDK 4.2 and then install Intel SDK. The Intel SDK Only Support Intel cores and Intel Graphics and NVIDIA SDK Only Support NVIDIA Graphics (Not Intel cores!)

0
votes

Your path should be this when you write it in C & C++ (escaping the \ with another \):

"-g -s \"C:\\Users\\Administrator\\AppData\\Local\\NVIDIA Corporation\\NVIDIA GPU Computing SDK 4.2\\OpenCL\\src\\oclVectorAdd\VectorAdd.cl\""