spectral

Transfer between CPU & GPU... optimization ?

Discussion created by spectral on Oct 21, 2010
Latest reply on Oct 21, 2010 by spectral

Hi,

I have the following code :

int updateDataSet = MustUpdateDataSet(...);

if (updateDataSet)
    kernel->setArg(i++, *dataSet);

What I would like is to avoid to send each time the 'dataset' to the GPU because it has already been sent !

So, my question is... can I do this this ? or I MUST ALWAYS set the argument ?

But if I must always use 'setArgs' ... how can I avoid to re-transfer each time the huge (a same) set of datas ?

Outcomes