Search code examples
cudathrust

Is it possible to include all Thrust headers at once?


Is there a way to include all Thrust files instead of doing it individually? For example, right now I have to do the following:

#include <thrust/version.h>
#include <thrust/host_vector.h>
#include <thrust/device_vector.h>
#include <thrust/copy.h>
#include <thrust/fill.h> 
#include <thrust/sequence.h>

I just want to use something like

#include <thrust.h>

Is this possible?


Solution

  • There is currently no <thrust/everything.h> or equivalent header, so if you want this kind of functionality, you'd need to build it yourself as Bart suggests.