What is the best way to determine if a usable GPU is available?
Mostra commenti meno recenti
I have an app that is used by many people in our collaboration some with GPU's and parallel toolbox and some without.
I can't seem to the find the canUseGPU() function that returns true if the parallel toolbox is loaded and a compatible GPU is available to the program.
I know it is probably simple and the problem is I'm probably too simple to find it.
Thanks, Joe
Risposta accettata
Più risposte (1)
James Lebak
il 16 Nov 2012
Hi Joe,
There is not presently a function called 'canUseGPU' in Parallel Computing Toolbox. Matt's answer will work. You could also use the function parallel.gpu.GPUDevice.isAvailable instead of gpuArray, e.g.
try
canUseGPU = parallel.gpu.GPUDevice.isAvailable;
catch ME
canUseGPU = false;
end
James
1 Commento
Joseph Areeda
il 16 Nov 2012
Categorie
Scopri di più su Parallel and Cloud in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!