Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

gpuDeviceCount

Number of GPU devices present

Syntax

n = gpuDeviceCount

Description

n = gpuDeviceCount returns the number of GPU devices present in your computer.

Examples

Determine how many GPU devices you have available in your computer and examine the properties of each.

n = gpuDeviceCount;
for ii = 1:n
    gpuDevice(ii)
end
Was this topic helpful?