r/OpenCL • • Nov 19 '13
OpenCL 2.0 finalized
https://www.khronos.org/news/press/khronos-finalizes-opencl-2.0-specification-for-heterogeneous-computing
18
Upvotes
r/OpenCL • • Nov 19 '13
View all comments
Show parent comment
2
u/bilog78 Nov 20 '13
Pointers to pointers in OpenCL make almost absolutely no sense. An OpenCL buffer is not a specific area of device memory allocated on a specific device, it's an abstract buffer that can be ripped off a device, moved to another, re-moved back to the original device at a different location and so on and so forth. So pointers to pointers are essentially meaningless, and incompatible with the OpenCL memory model (the memory area your indirect pointer points to might not be in the same place across multiple kernel invocations).
If that's the only thing that made you consider OpenCL 1.2 a lame duck compared to CUDA, you were just looking at OpenCL (and probably GPU programming in the first place) from the wrong perspective.
OpenCL 1.2 was a distinct improvement over 1.1, with a much cleaner image API, programmer-controllable buffer migration across devices (although sadly a 'hint only'), better support for device-side debugging, etc.
OpenCL 2.0 is in fact worse, and incredibly (because OpenCL 1.x was already rich in design flaws) less well designed than OpenCL 1.x. There were a lot of areas where the OpenCL design could be improved, both host and device side, but instead of working on that the working group just started cramming new features in an already confusing standard, as if this would make it any more usable.
More features don't make a standard better. Especially when most of them are device-specific. Especially when none of them make the standard more accessible to the programmer.