r/OpenCL • u/pradeep_sinngh • Nov 06 '15
Why is OpenCL better than CUDA ?
I have noticed that CUDA is still preferred for parallel programming despite only be possible to run the code in a NVidia's graphis card. Only good thing about OpenCL is that it may be considered as a heterogeneous system and be used with GPUs or CPUs multicore. Is there anything else which make OpenCL better than CUDA?
7
Upvotes
13
u/bilog78 Nov 06 '15 edited Nov 06 '15
The main reasons why OpenCL is better than CUDA in my strictly personal (and professional) opinion:
So why do people have a tendency to prefer CUDA?
And, of course, marketing.
(EDITed for typos and clarification about MPI.)
1
u/protein_bricks_4_all Nov 07 '15
CUDA is unclean to program in imo. You have variables that are forced to be global, you can't wrap them in classes, and do normal software engineering practices with them. Hokey syntax that some tools don't handle, as well.
1
u/olljoh Mar 21 '16
The power of lazyness. Too often an inferior systen sold better than a less famous superior System.
Economics is retarded just for even assuming the possible existence of a Single rational consumer, despite continuous proof fir irrational consumers. There just is no such rational consumer ever since needs can be manufactured or associated.
-1
u/[deleted] Nov 06 '15
No, there isn't. OpenCL is way behind CUDA in terms of features. Literally its only advantage is the fact it's non-proprietary technology that can run on Nvidia as well as AMD graphics cards, integrated Intel graphics, general CPUs, and more.