CLVK Takes Shape For OpenCL On Vulkan, But Performance Has A Long Ways To Go

Written by Michael Larabel in Vulkan on 31 October 2018 at 04:45 PM EDT. 6 Comments
VULKAN
In addition to Zink taking shape for OpenGL over Vulkan, the separate and independent effort of CLVK continues marching along for OpenCL over Vulkan. I was experimenting with CLVK today and did some initial benchmarks.

CLVK exposes OpenCL 1.2 although not all functionality is in place. There is not yet support for images, device partitioning, and many other pieces of CL functionality. But it is enough to get some of the SHOC OpenCL benchmarks running along with OpenCL conformance tests and other small demos.


Building CLVK was quite easy to do with the instructions outlined on the CLVK GitHub page, which is what I was using for this round of testing.


Soon enough, the OpenCL library was working for CLVK and ready to take on some basic OpenCL workloads.
opencl-clvk-benchmark-test

I ran some CLVK tests on a GeForce RTX 2070 compared to the OpenCL 1.2 driver within the NVIDIA 410.73 Linux driver on Ubuntu.
opencl-clvk-benchmark-test

opencl-clvk-benchmark-test

opencl-clvk-benchmark-test

opencl-clvk-benchmark-test

The performance needs a lot of work, but interesting to see it's actually working and confirmed to be using the NVIDIA Vulkan driver during the tests. CLVK is mostly the work of one developer and started in September and made possible thanks to leveraging clspv, LLVM, and other open-source components. Check it out.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week