GPUDeviceManager
Namespace: parallel.gpu
Manager for GPU Devices
Description
parallel.gpu.GPUDeviceManager
broadcasts events that indicate when a
GPU device is selected, deselected, or reset. Use
parallel.gpu.GPUDeviceManager
to set up notifications that inform you
when your GPU device is selected, deselected, or reset without having to call
gpuDevice
or monitor data stored on the GPU. You can also use
parallel.gpu.GPUDeviceManager
to automatically change your GPU settings
when a GPU is selected.
Creation
Description
accesses the GPU device manager gdm
= parallel.gpu.GPUDeviceManager.instancegdm
that broadcasts events that
indicate when a GPU device is selected, deselected, or reset.
Note
You can only use one instance of parallel.gpu.GPUDeviceManager
available in a given MATLAB session.
Properties
Methods
Events
Event Name | Trigger | Event Data | Event Attributes |
---|---|---|---|
DeviceSelected | Triggered after a GPU device is selected. |
Properties:
|
|
DeviceDeselecting | Triggered just before a GPU device is deselected. |
Properties:
|
|
Note
When you reset a GPU device, the software triggers DeviceDeselecting
and then DeviceSelected
.
For more information about using events, see the examples on this page and Overview Events and Listeners.
Examples
Extended Capabilities
Version History
Introduced in R2016a