cuda - PTX - get value/address -


i don't understand how mov instruction works in ptx..

mov.type d, 

this moves in d if register or immediate value. way can move d address of if variable in global, local or shared state space.

let's suppose variable in global memory , points u64 value 0x1... how store 0x1 d since can a's address??

i'm not sure on how value instead of address.. intel asm's mov eax, ebx address , mov eax, [ebx] value (dereferencing ebx)

this answer should you. shows worked example of using mov , ld instructions load value pointer.


Comments