cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

opencl_JEDI
Journeyman III

invalid address space for argument to _kernel function

I thought about that and here what I already tried

I put the file in a directory without a space, but in this case it doesn't build the program at all. I really don't know what to do, I can't move forward if I can't include my headers.

ciErrNum = clBuildProgram(cpProgram, 0, NULL, "-I C:/Users/localcontrol/internship/OpenCV/cv/include", NULL, NULL);

0 Likes
thatguymike
Staff
Staff

invalid address space for argument to _kernel function

Are you using the AMD implementation?  We do not use clang in our stack so our implementation cannot generate clang error messages...

0 Likes
opencl_JEDI
Journeyman III

invalid address space for argument to _kernel function

No, I'm using nvidia implementation

0 Likes
gaurav_garg
Adept I

invalid address space for argument to _kernel function

This should be -I "C:/Users/localcontrol/internship/OpenCV/cv/include"

0 Likes
opencl_JEDI
Journeyman III

invalid address space for argument to _kernel function

It doesn't work,

I get error : 'I' : undeclared identifier

0 Likes
genaganna
Journeyman III

invalid address space for argument to _kernel function

Originally posted by: opencl_JEDI It doesn't work,

 

I get error : 'I' : undeclared identifier

 

you try like this

 

"-I/"C:/Users/localcontrol/internship/OpenCV/cv/include/""

0 Likes