沒戯. 與 NVIDIA CUDA 庫的競爭, 隻有OpenCL, 也隻具有基本功能的API

本文內容已被 [ 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

請您先登陸,再發跟帖!