eholk / harlan

A language for GPU computing.
Other
1.19k stars 82 forks source link

Use fat pointers for vectors #136

Open eholk opened 10 years ago

eholk commented 10 years ago

Instead of representing vectors as a pointer to a length field, we would represent them as a pair of a length and a pointer to the data. We pay a bit more for pointers, but it means we don't have to dereference memory as often to find the length. In particular, this means we'll be able to launch kernels without incurring a copy.