Copying from RAM to GPU

Discussion created by rahulgarg on Apr 18, 2008
Latest reply on Apr 22, 2008 by michael.chu
Lets assume an application allocates an array A in system memory. I want to transfer a copy of this array to the GPU. My understanding is that I need to do the following :

a) Allocate an array A in system memory using lets say malloc. This is done by code over which I have no control.

b) Allocate an array B using CAL as remote memory.

c) Map B to CPU, Copy A into B and then unmap.

d) Use calMemCpy to copy to GPU.

Is this correct or is there a more direct method where I can avoid copying of the array from A to B?