Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to include all Thrust headers at once?

Tags:

cuda

thrust

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?

like image 233
Tianxiang Xiong Avatar asked Oct 26 '25 02:10

Tianxiang Xiong


1 Answers

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.

like image 119
Jared Hoberock Avatar answered Oct 29 '25 08:10

Jared Hoberock