Minimum/maximum CUDA Toolkit requirement for R2022a

60 次查看(过去 30 天)
Hi,
I'm trying to make sure that the CUDA Toolkit version I have installed is compatible with the version of Matlab that I use, as I've heard that parallel computing can be very sensitive to this.
Looking at the current documentation, there are mention of the compute capability requirement, but nothing about CUDA.
And the older documentation does mention CUDA Toolkit versions, but only up to R2021b.
I am using Matlab R2022a and CUDA Toolkit 11.7, are they compatible ?

回答(1 个)

Edric Ellis
Edric Ellis 2022-9-5
编辑:Edric Ellis 2024-11-22
To run code using gpuArray, you do not need to install a CUDA Toolkit. You only need a CUDA driver. You should always* install the latest CUDA driver for your device. (*In the past, there have been rare occasions where the very latest CUDA driver has caused problems - but in general, it is almost always the right thing to install the lastest CUDA driver).
You can compile CUDA MEX files using mexcuda without installing a CUDA Toolkit as (since R2019b) Parallel Computing Toolbox ships the correct version of the CUDA Toolkit to do this. In recent versions of MATLAB, mexcuda can also generate PTX code to run with CUDAKernel.
The version of the CUDA Toolkit used by each version of MATLAB is listed here in the doc.

类别

Help CenterFile Exchange 中查找有关 GPU Computing 的更多信息

产品


版本

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by