Loading...
Searching...
No Matches
copymatrix: GPU => GPU
Utilities » Communication CPU <=> GPU

## Macros

#define | magma_icopymatrix( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix() for magma_int_t arrays.
#define | magma_icopymatrix_async( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix_async() for magma_int_t arrays.
#define | magma_index_copymatrix( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix() for magma_index_t arrays.
#define | magma_index_copymatrix_async( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix_async() for magma_index_t arrays.
#define | magma_ccopymatrix( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix() for magmaFloatComplex arrays.
#define | magma_ccopymatrix_async( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix_async() for magmaFloatComplex arrays.
#define | magma_dcopymatrix( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix() for double arrays.
#define | magma_dcopymatrix_async( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix_async() for double arrays.
#define | magma_scopymatrix( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix() for float arrays.
#define | magma_scopymatrix_async( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix_async() for float arrays.
#define | magma_zcopymatrix( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix() for magmaDoubleComplex arrays.
#define | magma_zcopymatrix_async( m, n, dA_src, ldda, dB_dst, lddb, queue)
| Type-safe version of magma_copymatrix_async() for magmaDoubleComplex arrays.
#define | magma_copymatrix( m, n, elemSize, dA_src, ldda, dB_dst, lddb, queue)
| Copy all or part of matrix dA_src on GPU device to dB_dst on GPU device.
#define | magma_copymatrix_async( m, n, elemSize, dA_src, ldda, dB_dst, lddb, queue)
| Copy all or part of matrix dA_src on GPU device to dB_dst on GPU device.

## Detailed Description

## Macro Definition Documentation

## magma_copymatrix

#define magma_copymatrix | ( |  | m,
|  |  | n,
|  |  | elemSize,
|  |  | dA_src,
|  |  | ldda,
|  |  | dB_dst,
|  |  | lddb,
|  |  | queue )

Copy all or part of matrix dA_src on GPU device to dB_dst on GPU device.

Elements may be arbitrary size. Type-safe versions set elemSize appropriately. With CUDA unified addressing, dA and dB can be on different GPUs.

This version synchronizes the queue after the transfer. See magma_copymatrix_async() for an asynchronous version.

Parameters

  [in] | m | Number of rows of matrix A. m >= 0.
  [in] | n | Number of columns of matrix A. n >= 0.
  [in] | elemSize | Size of each element, e.g., sizeof(double).
  [in] | dA_src | Source array of dimension (ldda,n).
  [in] | ldda | Leading dimension of matrix A. ldda >= m.
  [out] | dB_dst | Destination array of dimension (lddb,n), on GPU device.
  [in] | lddb | Leading dimension of matrix B. lddb >= m.
  [in] | queue | Queue to execute in.

## magma_copymatrix_async

#define magma_copymatrix_async | ( |  | m,
|  |  | n,
|  |  | elemSize,
|  |  | dA_src,
|  |  | ldda,
|  |  | dB_dst,
|  |  | lddb,
|  |  | queue )

Copy all or part of matrix dA_src on GPU device to dB_dst on GPU device.

Elements may be arbitrary size. Type-safe versions set elemSize appropriately. With CUDA unified addressing, dA and dB can be on different GPUs.

This version is asynchronous: it may return before the transfer finishes. See magma_copyvector() for a synchronous version.

Parameters

  [in] | m | Number of rows of matrix A. m >= 0.
  [in] | n | Number of columns of matrix A. n >= 0.
  [in] | elemSize | Size of each element, e.g., sizeof(double).
  [in] | dA_src | Source array of dimension (ldda,n), on GPU device.
  [in] | ldda | Leading dimension of matrix A. ldda >= m.
  [out] | dB_dst | Destination array of dimension (lddb,n), on GPU device.
  [in] | lddb | Leading dimension of matrix B. lddb >= m.
  [in] | queue | Queue to execute in.