My cuda code works fine. but when I include the following on top of my code it gives some errors.
surface<void,2> sImg;
fatal : Parsing error near '.surf': syntax error
How can I solve this?
When I declare “sImg” inside the main method it compiles..
The following doesnt work..
surface<void,2> sImg;
int main()
{
return 0;
}
I changed
Properties–>CUDA Runtime API–>GPU–>GPR Architecture1 to sm_20
Now it compiles..