As a side project (non UE4), I’ve been reading material and going over some video tutoirlas of OpenCL. I’m using AMD’s APP SDK. I’m not really interested in GPU programming, but I am interested in putting the APUs on modern Intel and AMD CPUs to use. I’m not exactly sure what that’s going to be yet, but as some trivial projects just to learn OpenCL I was thinking re-writing some of the Standard Template Libraries algorithms would be a good exercise. Does UE4 ever make use of any of these? I could probably just search the project for <algorithm> but it’s not a bad topic for discussion.
I haven’t looked yet, I just figured someone on here might know. If UE4 isn’t using STD::algorithm, does it have any algorithm types that I could take a look at? The idea would be to emulate their functionality but modifying them to run on the APU of modern CPUs. The main benefit of modern APUs over GPUs is that they share global memory and even constant memory (OpenCL memory spaces) with the CPU, the system ram and the L3 cache respectively, so large amounts of time wouldn’t be wasted moving things over the PCI bus. By using the APU we also don’t take up any resources on a discrete card that would otherwise be used for rending.
If there are any performance gains to be found here I intend to find them.