MATLAB PARALLEL COMPUTING TOOLBOX - S Guide de l'utilisateur Page 524

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 656
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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
Vue de la page 523
1 2 ... 519 520 521 522 523 524 525 526 527 528 529 ... 655 656

Commentaires sur ces manuels

Pas de commentaire