3 ms·
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 task
by joe_the_user 10y ago
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.
- duaneb 10y agoBoilerplate is one thing—this is what transpilers are for, among other solutions—but can OpenCL match CUDA on a performance level?
- marmaduke 10y agoCl is comparable to Cuda where the cuda code doesn't employ nvidia specific primitives.
- marmaduke 10y agoLook 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