error:cuCtxSetCurrent is not declared in this scope


I’m getting an error for using cuCtxSetCurrent() function in my code. I want to switch between contexts when I’m running on multiple GPU’s. I’m using cuda 5.0 and I’m not able to figure out why this error is occuring.

"error:cuCtxSetCurrent is not declared in this scope"

Can anyone help me in solving this??