different GPU share same buffer problem

Discussion created by ThomasUCF on Oct 28, 2010
Latest reply on Nov 10, 2010 by himanshu.gautam

 Hi all:

     If different GPUs share the same buffer, like the code below in "simpleMultiDevice":

     for(int i = 0; i < numGPUDevices; i++)
        gpu.inputBuffer = inputBuffer;
.outputBuffer = outputBuffer;

In which GPU exactly is the buffer physically located?

If I change the value of the buffer, say gpu[0].inputBuffer , does it mean the values are changed in each GPU buffer,say gpu[1].inputBuffer or gpu[2].inputBuffer or gpu[3].inputBuffer since they share the same inputBuffer?

  Thanks a lot.