MAGMA  magma-1.4.0
Matrix Algebra on GPU and Multicore Architectures
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
magmablas.h File Reference
#include "magmablas_z.h"
#include "magmablas_c.h"
#include "magmablas_d.h"
#include "magmablas_s.h"
#include "magmablas_zc.h"
#include "magmablas_ds.h"
Include dependency graph for magmablas.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define magmablas_zgemm   cublasZgemm
 
#define magmablas_cgemm   cublasCgemm
 
#define magma_setvector(n, elemSize, hx_src, incx, dy_dst, incy)   magma_setvector_internal( n, elemSize, hx_src, incx, dy_dst, incy, __func__, __FILE__, __LINE__ )
 
#define magma_getvector(n, elemSize, dx_src, incx, hy_dst, incy)   magma_getvector_internal( n, elemSize, dx_src, incx, hy_dst, incy, __func__, __FILE__, __LINE__ )
 
#define magma_setvector_async(n, elemSize, hx_src, incx, dy_dst, incy, stream)   magma_setvector_async_internal( n, elemSize, hx_src, incx, dy_dst, incy, stream, __func__, __FILE__, __LINE__ )
 
#define magma_getvector_async(n, elemSize, dx_src, incx, hy_dst, incy, stream)   magma_getvector_async_internal( n, elemSize, dx_src, incx, hy_dst, incy, stream, __func__, __FILE__, __LINE__ )
 
#define magma_setmatrix(m, n, elemSize, hA_src, lda, dB_dst, lddb)   magma_setmatrix_internal( m, n, elemSize, hA_src, lda, dB_dst, lddb, __func__, __FILE__, __LINE__ )
 
#define magma_getmatrix(m, n, elemSize, dA_src, ldda, hB_dst, ldb)   magma_getmatrix_internal( m, n, elemSize, dA_src, ldda, hB_dst, ldb, __func__, __FILE__, __LINE__ )
 
#define magma_copymatrix(m, n, elemSize, dA_src, ldda, dB_dst, lddb)   magma_copymatrix_internal( m, n, elemSize, dA_src, ldda, dB_dst, lddb, __func__, __FILE__, __LINE__ )
 
#define magma_setmatrix_async(m, n, elemSize, hA_src, lda, dB_dst, lddb, stream)   magma_setmatrix_async_internal( m, n, elemSize, hA_src, lda, dB_dst, lddb, stream, __func__, __FILE__, __LINE__ )
 
#define magma_getmatrix_async(m, n, elemSize, dA_src, ldda, hB_dst, ldb, stream)   magma_getmatrix_async_internal( m, n, elemSize, dA_src, ldda, hB_dst, ldb, stream, __func__, __FILE__, __LINE__ )
 
#define magma_copymatrix_async(m, n, elemSize, dA_src, ldda, dB_dst, lddb, stream)   magma_copymatrix_async_internal( m, n, elemSize, dA_src, ldda, dB_dst, lddb, stream, __func__, __FILE__, __LINE__ )
 

Functions

cublasStatus_t magmablasSetKernelStream (magma_queue_t stream)
 
cublasStatus_t magmablasGetKernelStream (magma_queue_t *stream)
 
void magma_setvector_internal (magma_int_t n, size_t elemSize, const void *hx_src, magma_int_t incx, void *dy_dst, magma_int_t incy, const char *func, const char *file, int line)
 
void magma_getvector_internal (magma_int_t n, size_t elemSize, const void *dx_src, magma_int_t incx, void *hy_dst, magma_int_t incy, const char *func, const char *file, int line)
 
void magma_setvector_async_internal (magma_int_t n, size_t elemSize, const void *hx_src, magma_int_t incx, void *dy_dst, magma_int_t incy, magma_queue_t stream, const char *func, const char *file, int line)
 
void magma_getvector_async_internal (magma_int_t n, size_t elemSize, const void *dx_src, magma_int_t incx, void *hy_dst, magma_int_t incy, magma_queue_t stream, const char *func, const char *file, int line)
 
void magma_setmatrix_internal (magma_int_t m, magma_int_t n, size_t elemSize, const void *hA_src, magma_int_t lda, void *dB_dst, magma_int_t lddb, const char *func, const char *file, int line)
 
void magma_getmatrix_internal (magma_int_t m, magma_int_t n, size_t elemSize, const void *dA_src, magma_int_t ldda, void *hB_dst, magma_int_t ldb, const char *func, const char *file, int line)
 
void magma_copymatrix_internal (magma_int_t m, magma_int_t n, size_t elemSize, const void *dA_src, magma_int_t ldda, void *dB_dst, magma_int_t lddb, const char *func, const char *file, int line)
 
void magma_setmatrix_async_internal (magma_int_t m, magma_int_t n, size_t elemSize, const void *hA_src, magma_int_t lda, void *dB_dst, magma_int_t lddb, magma_queue_t stream, const char *func, const char *file, int line)
 
void magma_getmatrix_async_internal (magma_int_t m, magma_int_t n, size_t elemSize, const void *dA_src, magma_int_t ldda, void *hB_dst, magma_int_t ldb, magma_queue_t stream, const char *func, const char *file, int line)
 
void magma_copymatrix_async_internal (magma_int_t m, magma_int_t n, size_t elemSize, const void *dA_src, magma_int_t ldda, void *dB_dst, magma_int_t lddb, magma_queue_t stream, const char *func, const char *file, int line)
 

Variables

magma_queue_t magma_stream
 

Macro Definition Documentation

#define magma_copymatrix (   m,
  n,
  elemSize,
  dA_src,
  ldda,
  dB_dst,
  lddb 
)    magma_copymatrix_internal( m, n, elemSize, dA_src, ldda, dB_dst, lddb, __func__, __FILE__, __LINE__ )

Definition at line 95 of file magmablas.h.

#define magma_copymatrix_async (   m,
  n,
  elemSize,
  dA_src,
  ldda,
  dB_dst,
  lddb,
  stream 
)    magma_copymatrix_async_internal( m, n, elemSize, dA_src, ldda, dB_dst, lddb, stream, __func__, __FILE__, __LINE__ )

Definition at line 104 of file magmablas.h.

#define magma_getmatrix (   m,
  n,
  elemSize,
  dA_src,
  ldda,
  hB_dst,
  ldb 
)    magma_getmatrix_internal( m, n, elemSize, dA_src, ldda, hB_dst, ldb, __func__, __FILE__, __LINE__ )

Definition at line 92 of file magmablas.h.

#define magma_getmatrix_async (   m,
  n,
  elemSize,
  dA_src,
  ldda,
  hB_dst,
  ldb,
  stream 
)    magma_getmatrix_async_internal( m, n, elemSize, dA_src, ldda, hB_dst, ldb, stream, __func__, __FILE__, __LINE__ )

Definition at line 101 of file magmablas.h.

#define magma_getvector (   n,
  elemSize,
  dx_src,
  incx,
  hy_dst,
  incy 
)    magma_getvector_internal( n, elemSize, dx_src, incx, hy_dst, incy, __func__, __FILE__, __LINE__ )

Definition at line 45 of file magmablas.h.

#define magma_getvector_async (   n,
  elemSize,
  dx_src,
  incx,
  hy_dst,
  incy,
  stream 
)    magma_getvector_async_internal( n, elemSize, dx_src, incx, hy_dst, incy, stream, __func__, __FILE__, __LINE__ )

Definition at line 51 of file magmablas.h.

#define magma_setmatrix (   m,
  n,
  elemSize,
  hA_src,
  lda,
  dB_dst,
  lddb 
)    magma_setmatrix_internal( m, n, elemSize, hA_src, lda, dB_dst, lddb, __func__, __FILE__, __LINE__ )

Definition at line 89 of file magmablas.h.

#define magma_setmatrix_async (   m,
  n,
  elemSize,
  hA_src,
  lda,
  dB_dst,
  lddb,
  stream 
)    magma_setmatrix_async_internal( m, n, elemSize, hA_src, lda, dB_dst, lddb, stream, __func__, __FILE__, __LINE__ )

Definition at line 98 of file magmablas.h.

#define magma_setvector (   n,
  elemSize,
  hx_src,
  incx,
  dy_dst,
  incy 
)    magma_setvector_internal( n, elemSize, hx_src, incx, dy_dst, incy, __func__, __FILE__, __LINE__ )

Definition at line 42 of file magmablas.h.

#define magma_setvector_async (   n,
  elemSize,
  hx_src,
  incx,
  dy_dst,
  incy,
  stream 
)    magma_setvector_async_internal( n, elemSize, hx_src, incx, dy_dst, incy, stream, __func__, __FILE__, __LINE__ )

Definition at line 48 of file magmablas.h.

#define magmablas_cgemm   cublasCgemm

Definition at line 22 of file magmablas.h.

#define magmablas_zgemm   cublasZgemm

Definition at line 20 of file magmablas.h.

Function Documentation

void magma_copymatrix_async_internal ( magma_int_t  m,
magma_int_t  n,
size_t  elemSize,
const void *  dA_src,
magma_int_t  ldda,
void *  dB_dst,
magma_int_t  lddb,
magma_queue_t  stream,
const char *  func,
const char *  file,
int  line 
)
void magma_copymatrix_internal ( magma_int_t  m,
magma_int_t  n,
size_t  elemSize,
const void *  dA_src,
magma_int_t  ldda,
void *  dB_dst,
magma_int_t  lddb,
const char *  func,
const char *  file,
int  line 
)
void magma_getmatrix_async_internal ( magma_int_t  m,
magma_int_t  n,
size_t  elemSize,
const void *  dA_src,
magma_int_t  ldda,
void *  hB_dst,
magma_int_t  ldb,
magma_queue_t  stream,
const char *  func,
const char *  file,
int  line 
)
void magma_getmatrix_internal ( magma_int_t  m,
magma_int_t  n,
size_t  elemSize,
const void *  dA_src,
magma_int_t  ldda,
void *  hB_dst,
magma_int_t  ldb,
const char *  func,
const char *  file,
int  line 
)
void magma_getvector_async_internal ( magma_int_t  n,
size_t  elemSize,
const void *  dx_src,
magma_int_t  incx,
void *  hy_dst,
magma_int_t  incy,
magma_queue_t  stream,
const char *  func,
const char *  file,
int  line 
)
void magma_getvector_internal ( magma_int_t  n,
size_t  elemSize,
const void *  dx_src,
magma_int_t  incx,
void *  hy_dst,
magma_int_t  incy,
const char *  func,
const char *  file,
int  line 
)
void magma_setmatrix_async_internal ( magma_int_t  m,
magma_int_t  n,
size_t  elemSize,
const void *  hA_src,
magma_int_t  lda,
void *  dB_dst,
magma_int_t  lddb,
magma_queue_t  stream,
const char *  func,
const char *  file,
int  line 
)
void magma_setmatrix_internal ( magma_int_t  m,
magma_int_t  n,
size_t  elemSize,
const void *  hA_src,
magma_int_t  lda,
void *  dB_dst,
magma_int_t  lddb,
const char *  func,
const char *  file,
int  line 
)
void magma_setvector_async_internal ( magma_int_t  n,
size_t  elemSize,
const void *  hx_src,
magma_int_t  incx,
void *  dy_dst,
magma_int_t  incy,
magma_queue_t  stream,
const char *  func,
const char *  file,
int  line 
)
void magma_setvector_internal ( magma_int_t  n,
size_t  elemSize,
const void *  hx_src,
magma_int_t  incx,
void *  dy_dst,
magma_int_t  incy,
const char *  func,
const char *  file,
int  line 
)
cublasStatus_t magmablasGetKernelStream ( magma_queue_t *  stream)
cublasStatus_t magmablasSetKernelStream ( magma_queue_t  stream)

Variable Documentation

magma_queue_t magma_stream