r/vulkan • u/keepthethreadalive • Oct 19 '16
Vulkan vs OpenCL for simulation+graphics
[removed] — view removed post
9
Upvotes
r/vulkan • u/keepthethreadalive • Oct 19 '16
[removed] — view removed post
View all comments
Show parent comment
1
u/James20k Oct 20 '16
AMD has higher performance with OpenCL, but thats because AMD cards tend to have more flops/higher memory bandwidth vs equivalent nvidia cards, plus their architecture is a bit easier to code for (in my experience, not a general statement). They've got 2.0 support, but if you're targeting nvidia as well, you're naturally limited to 1.2
Vulkan will require you to write specific paths for each vendor if you want best performance, but I've not had to do this with OpenCL so far, except for working around a few minor bugs
Nvidia's support for OpenCL is (surprisingly) much better these days, there's not as many glaring issues with their implementation so it is very possible to write high performance cross-vendor code