Array Convention

Jan 23, 2012 at 5:51 AM

Nick,

Have you given it any thought instead of using the current array convention of

int* array;
int arrayLen0;

use a cuda 2.0+ class? Like...

Array<int> array;

Then the object should be easier to move around and the class could have functions for length.

Reason I bring this up is that I think the current method becomes a restriction for what you can do with arrays, like returning an array from a function. Not to mention less headache of pointers and inserting lengths.