clBuildProgram crash with OpenCL SDK Debugger

clBuildProgram crash with OpenCL SDK Debugger

Hi everybody - Im new to this forum.
The problem im experiencing is when im trying to add the build option to clBuildProgram like so:

err = clBuildProgram(m_program, 0, NULL, "r; -g - s \"r; C:/Users/michal/Documents/Visual//Studio//2010/Projects/FCGL2/kernel.cl", NULL, NULL);

At runtime the program executes everything up to this point and simply crashes. Im using Visual Studio 2013 together with the newest Intel OpenCL.

The NDRange is exactly 2x4x2 and set in codebuilder options as well. buildLog provides me with the message :

-        buildLog    0x02c36688 "Error in processing command line: Don't understand command line argument \"r;\"!"    char *

Besides this my application runs smoothly, I just wanted to try the debugger. Can anyone help?

Thanks. 

 

3 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.
Best Reply

Hi Michal,

As the build error points the options string to clBuildProgram is wrong. It should be

"-g - s C:/Users/michal/Documents/Visual//Studio//2010/Projects/FCGL2/kernel.cl"

 

Raghu

Quote:

Raghu Muthyalampalli (Intel) wrote:

Hi Michal,

As the build error points the options string to clBuildProgram is wrong. It should be

"-g - s C:/Users/michal/Documents/Visual//Studio//2010/Projects/FCGL2/kernel.cl"

 

Raghu

It worked, no error! Follow-up question - how do actually I use the debugger? It seems to me that it does not do much, I was kind of expecting some new dialog window to open or something similar... 
Cant find a "how to" on intels webpage either...Any clue?

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui