Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

execution_policy.h missing error on CUDA compilation

📅 2013-Oct-10 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ cuda, error, thrust ⬩ 📚 Archive


When I tried to compile CUDA code downloaded from the web, I got a missing file error on <thrust/system/cuda/execution_policy.h>


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

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧