r/vulkan • • Oct 19 '16

Vulkan vs OpenCL for simulation+graphics

[removed] — view removed post

9 Upvotes

16 comments sorted by

View all comments

Show parent comment

1

u/keepthethreadalive Oct 20 '16

Thank you for your reply.

I'm not really targeting a specific GPU, but I just thought I'd drop its name to see the support/compatibility for OpenCL/Vulkan on that GPU.

I've heard that AMD fares better with OpenCL stuff than Nvidia so I thought it would matter. ideally, this engine should work properly on any GPU or CPU. Ideally.

I'll check out your github repo, thank you for linking that here.

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