Run code on GPU/CPU !

Started by arianaa30, May 05, 2014, 06:59:05 PM

Previous topic - Next topic

arianaa30

Hi,
I'm going to use jPCT-AE for a research project, but there is a tricky part. Is there any ways to specify to bind running the code on GPU, or CPU? I want to compare the performance.

EgonOlsen

Which code? I'm not sure if i get the question...

arianaa30

Oh, I did not really mean "the" code  :) I mean a jPCT-AE -based code, assume one of your benchmarks. I want to see how the performance difference could be if I run it purely on GPU or purely on CPU.

Lobby

Do you mean using a software renderer? As far as I know you can't use one in jPCT-AE :-\.

EgonOlsen

Rendering happens on the GPU and so do geometric transforms and stuff. Scene setup, visiblity detection, gross culling, collision detection and similar engine work happens on the CPU. There's no way to do it otherwise and there's no software renderer as Lobby already mentioned. Does that help somehow?

arianaa30

I see. OK, so there is no way of pushing stuffs to run on either on GPU or CPU.
Yes, your differentiation of which parts do run on GPU and which ones run on CPU was helpful.