<div dir="ltr">Hi,<br><br>I&#39;m trying to manually handle the OpenGL drawing, so what I&#39;ve done:<br>in session.cpp I changed:<br><div><span class="" style="white-space:pre">        </span>//device_use_gl = ((params.device.type != DEVICE_CPU) &amp;&amp; !params.background);</div><div><span class="" style="white-space:pre">        </span>device_use_gl = false; //forcing it to run the cpu code instead of gpu code, to avoid a potential crash with gl map/unmap buffer&quot;<br><br>when I use a CUDA device, everything renders fine, writes fine, etc..<br>when I use a multi CUDA device &quot;GTX 780 + 970&quot; , the device copies data from device_pointer to data_pointer wrong!<br><br>session-&gt;background = false;<br>device-&gt;background = true; &quot;because it failed in CUDA GL allocate buffer, so it set it to true and went to the other path&quot;.<br><br>image results attached of good and bad image of the same render: &quot;it renders completely fine with any single device, CPU, CUDA&quot;<br><br>it also renders fine ONLY in one case for Multi device:<br>let render size = 800 * 600 , when tile is large, and a factor of 800 * 600 &quot;so small number of total tiles&quot; , like tile size = 400 * 300, it renders fine, if the tile size is somehow off, like 399 * 300, black lines begin to appear.<br><br>any ideas?<br><br>cheers,<br>Mohamed Sakr</div></div>