Contenido principal

Esta página se ha traducido mediante traducción automática. Haga clic aquí para ver la última versión en inglés.

Computación GPU en MATLAB

Acelere su código ejecutando funciones MATLAB® en una GPU

Si todas las funciones que desea utilizar son compatibles con la GPU, simplemente puede usar gpuArray para transferir datos de entrada a la GPU. Para comenzar con la computación GPU, consulte Run MATLAB Functions on a GPU.

Para el aprendizaje profundo, MATLAB proporciona soporte paralelo automático para múltiples GPU. Ver Deep Learning with MATLAB on Multiple GPUs (Deep Learning Toolbox).

Puede usar la función gpuDevice para inspeccionar y seleccionar su GPU y usar las funciones gpuDeviceTable para inspeccionar varias GPU.

Funciones

expandir todo

gpuArrayArray stored on GPU
gatherTransfer distributed array, Composite object, or gpuArray object to local workspace
gpuDeviceQuery or select a GPU device
GPUDeviceManagerManager for GPU Devices
gpuDeviceCountNumber of GPU devices present
gpuDeviceTableTable of properties of GPU devices (Desde R2021a)
wait (GPUDevice)Wait for GPU calculation to complete
gputimeitTime required to run function on GPU
existsOnGPUDetermine if gpuArray or CUDAKernel is available on GPU
isgpuarrayDetermine whether input is gpuArray
arrayfunApply function to each element of array on GPU
pagefunApply function to each page of distributed or GPU array
gpurngControl random number generation on the GPU
resetReset GPU device and clear its memory
parallel.gpu.RandStreamRandom number stream on a GPU
parallel.gpu.enableCUDAForwardCompatibilityQuery and set forward compatibility for GPU devices

Temas

Ejecute el código MATLAB en la GPU

Mejorar el rendimiento en GPU

Aprende más

Información relacionada

Ejemplos destacados