execution_policy.h missing error on CUDA compilation

Problem

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

 

Solution

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.