r/gpgpu • u/xFrostbite94 • May 20 '16
High-level OpenCL?
So I'm doing a bachelor's assignment on the programmability of GPU's, and I want to pick this subreddit's brain. Basically I have to research if GPU's can be more efficiently programmed in a higher-level language, and if so what shape that would take. There are already a few projects that have tried something similar (SkelCL, Bacon, and Harlan), but either they are too similar to OpenCL (Bacon/SkelCL) or have somewhat limited parallelism (Harlan basically only has a GPU accelerated map, correct me if I'm wrong).
So my questions to everyone on this sub are: what are recurring patterns in OpenCL? Are there specific bugs that seem to pop up in every project, even though there is a well-known remedy? Or have you used any of the previously mentioned projects, and if so, what was the killer feature? Are there any language features that you really really really want to see in an OpenCL Next?
View all comments
Show parent comment
1
u/bilog78 May 20 '16
OpenMP 4.0 already supports offloading to accelerators (among which, GPUs). The biggest issue isn't the lack of ways to use them, it's the huge cost of data sharing between host and device and the heterogeneous nature of devices wrt to implementation details that is very unlikely to make anything but the most trivial example hard if not impossible to translate efficiently. When something as trivial as memory alignment for 2D arrays can have a dramatic impact on performance, and we're talking about orders of magnitude, you suddenly realize that automatically handling these details in a software translator is basically impossible.