This is machine translation

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

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

GPUDeviceManager

Manager for GPU Devices

Description

parallel.gpu.GPUDeviceManager provides events that indicate when a GPU device has been selected or deselected. These events also fire when a GPU device is reset. There is only a single instance of the parallel.gpu.GPUDeviceManager available in a given MATLAB session, and it is obtained using the method parallel.gpu.GPUDeviceManager.instance.

Events

Events of the class include the following:

Event NameDescription
DeviceSelectedFired after a GPU device is selected.
DeviceDeselectingFired just before a GPU device is deselected.

Properties

A GPUDeviceManager object has one property:

Property NameDescription
SelectedDeviceContains the currently selected GPU Device.

Methods

Methods of the class include the following:

Method NameDescription
getDeviceCountReturns the number of GPU devices available.
selectDeviceSelects a GPU device.

Introduced in R2016a