4 ms·
"Hello World" is not a particularly meaningful program on a device with no console or LEDs to blink - why don't you try something simple like summing every numb
by joe_the_user 11y ago
"Hello World" is not a particularly meaningful program on a device with no console or LEDs to blink - why don't you try something simple like summing every number from 1 to N? Easy to code, easy to verify...
I'm not trying to run "hello world", I'm looking at the easily accessible OpenCl code and seeing "hello world" as the most common example program.
- jcranmer 11y agoThat's a problem of the training materials, not of the language itself.
- sklogic 11y agoOpenCL is very low level (sort of like Vulkan, which was actually inspired by it). Start with some easy wrappers, like PyOpenCL.
- joe_the_user 11y agoExcept I'm a c/c++ programmer. Any "easy wrappers" for c?
- sklogic 11y agoThere is an official Khronos C++ wrapper API that is significantly more dense than the underlying C API.
- joe_the_user 11y agoI was thinking of easy and usable rather than dense. I think Khronos wrapper is just a translation of the original API into c++, which partakes of the basic problem - a zillion options for a zillion distinct sorts of hardware, in contrast to Cuda, with a main functional and supported approach.
- sklogic 11y agoUnlike the C API it got a lot of sane defaults.
- Annatar 11y agoNo console? Why couldn't one use the built-in HDMI / DVI ports as the console output?