4 Replies Latest reply on Nov 10, 2010 5:29 PM by himanshu.gautam

    different GPU share same buffer problem

    ThomasUCF

       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;
              gpu
      .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.

       

        ThomasUCF