4 ms·
Maybe, but to be fair, that's only part of it. OpenCL is C99-based, and MS wants a C++ solution. OpenCL introduces more problems than it solves, primarily becau
by chaffy 15y ago
Maybe, but to be fair, that's only part of it. OpenCL is C99-based, and MS wants a C++ solution. OpenCL introduces more problems than it solves, primarily because the standards body mandated C99 and a low-level, driver-style interface.
Have you ever seen an OpenCL Hello World program [1]? It's miserable.
[1] http://developer.apple.com/library/mac/#documentation/Performance/Conceptual/OpenCL_MacProgGuide/Example:Hello,World/Example:Hello,World.html http://developer.apple.com/library/mac/#documentation/Perfor...
- malkia 15y agoCan you show us a DirectCompute one? Btw, introducing C++ introduces problems too: RTTI, exceptions, and the fact that templates are to be used (would tend to create bigger code).
- chaffy 15y agoDirectCompute suffers much of the same problems as OpenCL. Folks who want to program GPUs productively use Thrust [1]. [1] http://code.google.com/p/thrust/ http://code.google.com/p/thrust/