Calling a device subroutine from a kernel

I’ve been experimenting with my code for a while and the last thing I can think of that could be wrong (without feedback from the compiler engineers) is my call to a device subroutine from a kernel.

Currently my kernel is called from the host using standard chevron syntax, no troubles. I then call the device subroutine from within the kernel like a normal everyday subroutine: call drva( arguments )

Is there some other way I am supposed to call a device subroutine?

Is there some other way I am supposed to call a device subroutine?

You call them just using normal syntax. In reality all device subroutines are inlined into your kernel.so the error is most likely due to this inlining process. Exactly what, unfortunately I can’t tell without an example.

Sorry, I wish I could be of more help.

Mat