When I tried to compile CUDA code downloaded from the web, I got a missing file error on
Thrust execution policies were introduced in version 1.7. CUDA 5 and older versions do not have this Thrust. Update to CUDA 5.5 or at least update to the most recent version of Thrust from Github.
Tried with: CUDA 5 and Ubuntu 12.04 LTS