Hello Jens,
I do not want to get these value returned but I am copying values from a large data set into these smaller vectors to pass to the kernel. If I define them as const, how would I be able to write to them?
I've been avoiding the need to pass struct/class since I still don't know how to do the type transformation. But it seems like I will have to.
The types which I passed were:
cupp::vector <unsigned> d_indexN1;
cupp::vector < cupp::vector<unsigned> > d_indexId1;
cupp::vector < cupp::vector<unsigned> > d_indexLoc1;
cupp::vector < cupp::vector<bit24_t> > d_bseq;
cupp::vector < cupp::vector<bit24_t> > d_reg;
cupp::vector<uint4> d_seeds0;
cupp::vector<short4> d_profile0a;
cupp::vector<short4> d_profile0b1;
cupp::vector<short> d_readlen;
bit24_t is a structure:
struct bit24_t
{
unsigned a:24;
}
I've tried to set the binding as follow:
struct bit24_td;
struct bit24_t
{
unsigned a:24;
typedef bit24_td device_type;
typedef bit24_t host_type;
};
struct bit24_td
{
unsigned a:24;
typedef bit24_td device_type;
typedef bit24_t host_type;
};
This must have been incorrect as I got a long list of compile errors, all relating to bit24_t.
-Dinh