eholk / harlan

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

Allow CPU to allocate memory directly on GPU #133

Closed eholk closed 10 years ago

eholk commented 10 years ago

Unfortunately, allocating from a region on the CPU requires moving the region to the CPU. Sometimes this means copying an entire region back just to increment a pointer, and then sending the region immediately back to the GPU for a kernel. We could instead add a couple of small kernels to do the increment on the GPU, saving some large transfers.

eholk commented 10 years ago

This is a dup of #67.