User`s guide
11 Functions — Alphabetical List
11-272
M % Display gpuArray
16 2 3 13
5 11 10 8
9 7 6 12
4 14 15 1
reset(g);
g % Show that the device is still selected
g =
CUDADevice with properties:
Name: 'Tesla K20c'
Index: 1
ComputeCapability: '3.5'
SupportsDouble: 1
DriverVersion: 5.5000
ToolkitVersion: 5.5000
MaxThreadsPerBlock: 1024
MaxShmemPerBlock: 49152
MaxThreadBlockSize: [1024 1024 64]
MaxGridSize: [2.1475e+09 65535 65535]
SIMDWidth: 32
TotalMemory: 5.0327e+09
AvailableMemory: 4.9190e+09
MultiprocessorCount: 13
ClockRateKHz: 614500
ComputeMode: 'Default'
GPUOverlapsTransfers: 1
KernelExecutionTimeout: 0
CanMapHostMemory: 1
DeviceSupported: 1
DeviceSelected: 1
whos % Show that the gpuArray variable name
% is still in the MATLAB workspace
Name Size Bytes Class
g 1x1 112 parallel.gpu.CUDADevice
M 1x1 108 gpuArray
M % Try to display gpuArray
Data no longer exists on the GPU.