GPU CUDA y programación MEX
Si ejecutar las funciones MATLAB® en la GPU no acelera lo suficiente su código, o si necesita usar funciones avanzadas de la GPU CUDA, puede escribir su propio código CUDA y ejecutarlo en MATLAB generando un archivo MEX ejecutable usando mexcuda o un kernel ejecutable. usando parallel.gpu.CUDAKernel .
Generalmente, usar archivos MEX es más flexible que usar objetos CUDAKernel. Para obtener más información, consulte Run MEX Functions Containing CUDA Code.
Funciones
Temas
- Run MEX Functions Containing CUDA Code
If running MATLAB functions on the GPU does not sufficiently speed up your code, or if you need to use advanced GPU CUDA features, you can write your own CUDA code and run it in MATLAB by generating an executable MEX file using
mexcuda. - Run CUDA or PTX Code on GPU
If running MATLAB functions on the GPU does not sufficiently speed up your code, or if you need to use advanced GPU CUDA features, you can write your own CUDA code and run it in MATLAB by an executable kernel using
parallel.gpu.CUDAKernel.

