4 ms·
> very easy to support the good guys But AMD doesn’t run CUDA? Is it very easy to switch a stack relying on CUDA to OpenCL? I don’t think so.
by chrisseaton 9y ago
> very easy to support the good guys
But AMD doesn’t run CUDA? Is it very easy to switch a stack relying on CUDA to OpenCL? I don’t think so.
- zdw 9y agoAMD's ROCm suite has a tool for converting CUDA to C++ code: https://github.com/ROCm-Developer-Tools/HIP https://github.com/ROCm-Developer-Tools/HIP How well it works is likely codebase and application dependent.
- frozenport 9y agoHere was my experience. Everything in ocl ended up slower, with 30%+ longer (walltimes) on nvidia hardware. Also some problems with floating point precision. Real problem was there was no business case to switch because we could always make customers eat the cost of taking nvidia gpus. The added code complexity was not worth it - we originally did it as NRE for a big client who wanted OEM capabilities to our IP.
- katastic 9y agoOpenCL is slower than CUDA, but it's not the end of the world.
- mangix 9y agogot a reference?
- unfamiliar 9y agoThat is simply not true.
- biafra 9y agoPlease be more specific. What is not true? That it is slower or that this is not the end of the world?
- katastic 9y agoWow, people are butthurt. It's a wildly known fact in the industry. A simple google search for benchmarks or a PDF like this would have satisfied them. But they didn't want the truth they wanted to be butthurt. https://arxiv.org/ftp/arxiv/papers/1005/1005.2581.pdf https://arxiv.org/ftp/arxiv/papers/1005/1005.2581.pdf In basically every chart and graph, OpenCL is slower. OpenCL has a higher level of abstraction, so it's got a higher penalty for it. But, you get cross-platform support. nVidia doesn't optimize for OpenCL either because they don't want you to use it over their own competing framework. But 'dats cool, keep downvoting, guys. Sources aren't real if you can downvote 'em enough. God, I love Hacker News.
- grzm 9y agoWould you kindly raise the level of discourse here? You have useful information, so thanks for sharing it. But please leave the swipes and complaints about downvotes and HN members out of it. It worsens discussion and is against the guidelines. You’ll likely receive downvoted for that, more than anything else.
- sli 9y agoThis reddit-style, highly emotional commenting is not terribly welcome on HN.
- frozenport 9y agoYea it is. Take a look at fft performance across cufft and the ocl equals on same nvidia hardware.
- mrmondo 9y agoI’ve been using OpenCL for some neutral net image optimisation recently, I’ve actually found it very efficient (citation obviously needed), I personally welcome the competition of AMD and it does seem like Nvidia is digging its own grave (not that I think it’ll die).
- wyldfire 9y agoI don't think it's that hard, but it depends maybe a bit on how long your codebase has evolved through CUDA.