What's the proper way to handle GPU related matlab functions in a compiled app that might run on a computer without a supported GPU

2 visualizaciones (últimos 30 días)
Do I just somehow test and if all those statments declarations out or what or do functions like gpuArray do nothing when run on a computer without a supported GPU

Respuesta aceptada

Edric Ellis
Edric Ellis el 21 de Jul. de 2021
You can use canUseGpu to check if a GPU is available. If one is not, then your code needs to not create any gpuArray data.

Más respuestas (0)

Categorías

Más información sobre GPU Computing en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by