The workload until now lies on the Optix code which runs totally on the GPU , using the host code on the CPU for coordination and organization purposes only. As it meant to be by Optix.
Last days I read some papers(and still reading...) on hybrid rendering , either with cuda/opencl or other languages.
One of the papers [Combinatorial Bidirectional Path-Tracing for Efficient Hybrid CPU/GPU Rendering] of Anthony Pajot, Loïc Barthe, Mathias Paulin, and Pierre Poulin describes a way to exploit both processors efficiently. It proposes that the path creation can be made on the CPU and the combination of path on the GPU(Pure cuda code). It proved to be 12 times faster than CPU alone.
I was thinking of doing the opposite.
That is :
Create the paths on the GPU using optix and save all that i need on a common CPU/GPU buffer , which i already do .
Then execute the all-path combinations on the CPU. To offload some work from the GPU.
Unscientific as it , commenting out of the Optix code the combinatorial step , it speeds up the path creation 3-3.5 times.
My thought was : IF the CPU is better at executing code in "for" loops, would the acceleration from using a second processor would be greater than the overhead of a busy memory bus??
AND is this system not-extensible enough??(if one processor would be ok for one card , what about 2-3-4 cards for processing ???)
What do you think ? should i try it or is it a lost cause?