licoah

How to increase the speed of data transfer

Discussion created by licoah on Mar 11, 2009
Latest reply on Apr 18, 2009 by cuorematto

when I use this

func(float* dataOut){

      stream out;

      kernelcalculation

     out.write(dataOut)

}

it took 0.409s.

when I use cal

func (float* dataOut)

{

       CALmem localRes

      CALmem remoteRes

       calculations

       calMemCopy (copy data from localRes to remoteRes)

        memcpy (from remoteRes to dataOut)

}

it took 1.255s

I don't how to increase this copy time in CAL.

Outcomes