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

本帖于 2023-05-04 11:11:48 时间, 由普通用户 uptrend 编辑
回答: 所以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

请您先登陆,再发跟帖!