reset
GPU 장치를 재설정하고 메모리를 지웁니다.
설명
예제
GPU 장치 재설정
GPU 장치를 선택하고 gpuArray
을 만듭니다.
D = gpuDevice;
M = eye(4,"gpuArray")
M = 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1
장치를 재설정합니다.
reset(D);
장치가 아직 선택되어 있음을 보여줍니다.
D
D = CUDADevice with properties: Name: 'Quadro P620' Index: 2 ComputeCapability: '6.1' SupportsDouble: 1 GraphicsDriverVersion: '511.79' DriverModel: 'WDDM' ToolkitVersion: 11.2000 MaxThreadsPerBlock: 1024 MaxShmemPerBlock: 49152 (49.15 KB) MaxThreadBlockSize: [1024 1024 64] MaxGridSize: [2.1475e+09 65535 65535] SIMDWidth: 32 TotalMemory: 2147287040 (2.15 GB) AvailableMemory: 1614636238 (1.61 GB) CachePolicy: 'balanced' MultiprocessorCount: 4 ClockRateKHz: 1354000 ComputeMode: 'Default' GPUOverlapsTransfers: 1 KernelExecutionTimeout: 1 CanMapHostMemory: 1 DeviceSupported: 1 DeviceAvailable: 1 DeviceSelected: 1
gpuArray
변수 이름이 아직 MATLAB 작업 공간에 있음을 보여줍니다.
whos
Name Size Bytes Class Attributes D 1x1 8 parallel.gpu.CUDADevice M 4x4 0 gpuArray
gpuArray
를 표시하려고 시도합니다.
M
M = Data no longer exists on the GPU.
변수를 지웁니다.
clear M
입력 인수
gpudev
— GPU 장치
GPU 장치
GPU 장치로, 현재 선택된 장치를 나타내는 GPUDevice
객체로 지정됩니다
팁
GPU 장치를 재설정한 후에는 장치의 배열 또는 커널을 나타내는 모든 변수가 유효하지 않습니다. 따라서 이러한 변수를 지우거나 다시 정의해야 합니다.
버전 내역
R2012a에 개발됨
참고 항목
MATLAB 명령
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)