If you simply install CUDA 5.5 you will get thrust 1.7.
If you are targeting a GPU backend (meaning you want to run your thrust code on the GPU) it requires nvcc
, the GPU device code compiler/compiler driver, which comes with CUDA 5.5.
You cannot build thrust GPU code with gcc
(you must use nvcc
) and the file name should end in .cu
not .cpp