Is it somewhat possible to make a list, array, something in a device function with the size of the list/array beeing a parameter in the call… or a global variable that's initialized at call time?
I would like something like one of these list to work:
unsigned int size1;
__device__ void function(int size2) {
int list1[size1];
int list2[size2];
}
Is it possible to do something smart to make something like this work?