Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm an independent developer in the process of choosing a GPGPU library.

I can see simple, comprehensible 20-50 sample code for cuda that does most simple tasks. With OpenCL, I get references to version, boiler-plate, mode with nothing that boils down to simple code.

If you have a simple sample, you should post it here or blog about it.



Look at Pyopencl; it makes it quite easy to prototype OpenCL apps in tens of lines of code.

Later, it's straightforward to port to c or c++ if that's your thing, though I find having numpy et al handy even in production code


Boilerplate is one thing—this is what transpilers are for, among other solutions—but can OpenCL match CUDA on a performance level?


Cl is comparable to Cuda where the cuda code doesn't employ nvidia specific primitives.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: