Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
non-bin616y@Codex404 cuda has .cu files and a different compiler, for openCL you write the device code as a string (which is difficult to get syntax highlighting on) etc
-
greyfade1776yBecause bog standard C doesn't know how to cope with highly vectorized massively parallel computation without doing truly unholy things to its syntax. May as well be a new language at that point.
-
greyfade1776y
-
Of course you could do that with a library and call that from C. However, it makes more sense e.g. for NVidia to do something proprietary so that any application based on Cuda will be locked to NVidia forever.
With a library, its implementation could be changed, and the application wouldn't notice, so it wouldn't be locked in.
Related Rants
Why does all GPU functionality need a while new language? Libraries are a thing ya know?
rant
gpu