Show HN: A Minimal Code Example of Using Vulkan for Computations on the GPU
github.com
github.com
How will everything possibly work? Is it just that OpenCL's API will change and the libraries for OpenCL will remain the same or will the library be merged into Vulkan too? I'm just confused since the programming models are so different.
AFAIU Vulkan will continue in the direction it is going.
I imagine that the OpenCL API will replace the directly comparable parts of the APIs (e.g. contexts queues images/buffers) so that OpenCL will use the Vulkan "definition". OpenCL kernels would go next to compute shaders in terms of the pipeline. There of course would be some additional things added to the combined API to support OpenCL specific things (like pipes).
But alas, I am no more privy to these things than you, and the above is pure speculation.
[0] https://github.com/KhronosGroup/Khronosdotorg/blob/master/ap...
For example, say I don't need to optimize my command submittal, or I just want the main device. Or maybe my common use case is a compute shader just like the program submitted in this Hacker News post. I would want a class that just exposed a simple API like runComputeShader() or something.
It would be great to see a tensorflow-vulkan