沒戯. 与 NVIDIA CUDA 库的竞争, 只有OpenCL, 也只具有基本功能的API

来源: uptrend 2023-05-04 11:03:26 [] [博客] [旧帖] [给我悄悄话] 本文已被阅读: 次 (1894 bytes)
本文内容已被 [ uptrend ] 在 2023-05-04 11:11:48 编辑过。如有问题,请报告版主或论坛管理删除.
回答: 所以AMD沒戯,是嗎?bubbleberry2023-05-04 10:55:23

Library-wise: Sadly, OpenCL is only an API with basic functions to harness GPU power for your custom kernels. Anything advanced you want, needs to be written by you or needs to come from higher-level implementations that use OpenCL which are a bit harder to obtain than CUDA. Just a bit harder. At least there are many options.

For example, if you need Fourier Transform on GPU, you will need at least one of the following:

clFFT
ViennaCL
Arrayfire
CLBlast
Numba-Roc
Tensorflow-cl
Eigen — to compare
FFTW — to compare CPU performance
Boost compute — maybe needed by others
Lapack — maybe needed by others
Mkl — maybe needed by others
AMP
SyCL — maybe needed by others

even then you may not have a good glue between two things as good as Nvidia’s fully-fledged CUDA libraries out of box. But its not NP-hard to do it nor to write your own (although slower) version of FFT.

Another advantage of CUDA is automatic optimizations on every new version. But with custom framework, every dependency needs to be updated individually since they don’t come from same source. If any two uses same thing as base dependency, you may not upgrade one without upgrading the other.

How good is the competition to NVIDIA CUDA?

所有跟帖: 

OpenCL 很少用于机器学习。 因此,社区很小,可用的库和教程很少。CUDA 比 OpenCL 快 30% -uptrend- 给 uptrend 发送悄悄话 uptrend 的博客首页 (1592 bytes) () 05/04/2023 postreply 11:08:15

open ai 是快要上市了嘛? -bubbleberry- 给 bubbleberry 发送悄悄话 bubbleberry 的博客首页 (0 bytes) () 05/04/2023 postreply 11:13:38

No, it has no plan to IPO. -uptrend- 给 uptrend 发送悄悄话 uptrend 的博客首页 (0 bytes) () 05/04/2023 postreply 11:16:59

多谢分享! -Tiger666- 给 Tiger666 发送悄悄话 (0 bytes) () 05/04/2023 postreply 11:17:33

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”