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

  • 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 523
11 Functions — Alphabetical List
11-180
mxGPUCopyFromMxArray (C)
Copy mxArray to mxGPUArray
C Syntax
#include "gpu/mxGPUArray.h"
mxGPUArray* mxGPUCopyFromMxArray(mxArray const * const mp)
Arguments
mp
Pointer to an mxArray that contains either GPU or CPU data.
Returns
Pointer to an mxGPUArray.
Description
mxGPUCopyFromMxArray produces a new mxGPUArray object with the same
characteristics as the input mxArray.
• If the input mxArray contains a gpuArray, the output is a new copy of the data on
the GPU.
• If the input mxArray contains numeric or logical CPU data, the output is copied to
the GPU.
Either way, this function always allocates memory on the GPU and allocates a new
mxGPUArray object on the CPU. Use mxGPUDestroyGPUArray to delete the result when
you are done with it.
See Also
mxGPUCopyGPUArray | mxGPUDestroyGPUArray
Vista de pagina 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 655 656

Comentarios a estos manuales

Sin comentarios