Use Thrust-style Context objects instead of CUDA build-in variables and functions directly.