I am getting a problem with kernel compilation while trying to do image processing.
What I get is this:
Program Build Log:
ptxas ptx input, line 430; error : Illegal argument for formal parameter 'ptxbe_rdo_image'
The problem happens when I have a kernel which calls a function twice. It doesn’t complain when I am calling it only once. It is very strange that this is a compile-time problem.
Example:
foo(bla, bla, bla);
will compile just fine.
However, if my kernel does this:
foo(bla, bla, bla);
foo(bla, bla, bla);
It fails!
Any ideas why this would happen? I can’t post the code in it’s entirety, but rest assured this is the exact problem. Just by commenting or uncommenting one line, which is the exact copy of the line above it, I can make the problem appear/disappear. I have never seen or debugged such a problem before. Please let me know how to solve it.
Regards,