MATLAB PARALLEL COMPUTING TOOLBOX - S Guía de usuario Pagina 615

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 656
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 614
reset
11-271
reset
Reset GPU device and clear its memory
Syntax
reset(gpudev)
Description
reset(gpudev) resets the GPU device and clears its memory of gpuArray and
CUDAKernel data. The GPU device identified by gpudev remains the selected device,
but all gpuArray and CUDAKernel objects in MATLAB representing data on that device
are invalid.
Arguments
gpudev GPUDevice object representing the currently selected device
Tips
After you reset a GPU device, any variables representing arrays or kernels on the device
are invalid; you should clear or redefine them.
Examples
Reset GPU Device
Create a gpuArray on the selected GPU device, then reset the device.
g = gpuDevice(1);
M = gpuArray(magic(4));
Vista de pagina 614
1 2 ... 610 611 612 613 614 615 616 617 618 619 620 ... 655 656

Comentarios a estos manuales

Sin comentarios