MATLAB PARALLEL COMPUTING TOOLBOX - S Betriebsanweisung Seite 529

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 656
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 528
mxGPUCreateFromMxArray (C)
11-185
mxGPUCreateFromMxArray (C)
Create read-only mxGPUArray object from input mxArray
C Syntax
#include "gpu/mxGPUArray.h"
mxGPUArray const * mxGPUCreateFromMxArray(mxArray const * const mp)
Arguments
mp
Pointer to an mxArray that contains either GPU or CPU data.
Returns
Pointer to a read-only mxGPUArray object.
Description
mxGPUCreateFromMxArray produces a read-only mxGPUArray object from an mxArray.
If the input mxArray contains a gpuArray, this function extracts a reference to the
GPU data from an mxArray passed as an input to the function.
If the input mxArray contains CPU data, the data is copied to the GPU, but the
returned object is still read-only.
If you need a writable copy of the array, use mxGPUCopyFromMxArray instead.
This function allocates a new mxGPUArray object on the CPU. Use
mxGPUDestroyGPUArray to delete the result when you are done with it.
See Also
mxGPUCopyFromMxArray | mxGPUCreateGPUArray | mxGPUDestroyGPUArray
Seitenansicht 528
1 2 ... 524 525 526 527 528 529 530 531 532 533 534 ... 655 656

Kommentare zu diesen Handbüchern

Keine Kommentare