I am a new comer to cuda. And I want to add prefetch to cuda.
I add this to code.
_device_ void a(...)..{
....
double value;
...
asm("prefetch.global.L2 [&value];");
...}
but, I get this error.
ptxas /tmp/tmpxft_00000259_00000000-6_Simulation.ptx, line 279; fatal : Parsing error near '&': syntax error
ptxas <macro util>, line 12; error : Illegal modifier '.L2' for instruction 'mov'
ptxas <macro util>, line 12; error : Illegal modifier '.L2' for instruction 'mov'
ptxas fatal : Ptx assembly aborted due to errors
Can anybody help me T^T