I have such structure:
typedef struct
{
size_t *items;
size_t count;
} Type_t;
Can I do this:
Type_t *d_set;
cudaMalloc((void**)&d_set, sizeof(sizeof(Type_t)));
cudaMalloc((void**)&d_set->items, sizeof(size_t)*1024)));
or
Type_t d_set;
cudaMalloc((void*)&d_set, sizeof(sizeof(Type_t)));
size_t items;
cudaMalloc((void*)&items, sizeof(size_t)*1024)));
d_set->items = items;