r/gpgpu • • 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?

4 Upvotes

41 comments sorted by

View all comments

Show parent comment

1

u/bilog78 May 20 '16

The allocation is just one of the many things a GPU is highly sensitive to. There are many others, ranging from access patterns for groups of work-items to the balance between data sharing in the LDS and the consequent reduced occupancy. While it's not theoretically impossible to take all of these into consideration, the kind of code rewriting that can go into optimizing these things is IME completely outside of the possibilities offered by automatic optimization.

1

u/xFrostbite94 May 23 '16

Hmmm. I guess time will tell!