You get an error because your PTX contains a syntax error and never compiles as a result. Line
mov.b64 func_retval0, %rl0;
refers to the label func_retval0 , but this is not indicated in the PTX file anywhere. You can verify this by trying to compile PTX yourself using the toolchain:
$ ptxas -arch=sm_20 own.ptx ptxas own.ptx, line 24; error : Arguments mismatch for instruction 'mov' ptxas own.ptx, line 24; error : Unknown symbol 'func_retval0' ptxas own.ptx, line 24; error : Label expected for forward reference of 'func_retval0' ptxas fatal : Ptx assembly aborted due to errors
source share