MAGMA  1.2.0
MatrixAlgebraonGPUandMulticoreArchitectures
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
magma.h File Reference
#include "magmablas.h"
#include "auxiliary.h"
#include "magma_z.h"
#include "magma_c.h"
#include "magma_d.h"
#include "magma_s.h"
#include "magma_zc.h"
#include "magma_ds.h"
Include dependency graph for magma.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MagmaNoTrans   'N'
#define MagmaTrans   'T'
#define MagmaConjTrans   'C'
#define MagmaUpper   'U'
#define MagmaLower   'L'
#define MagmaUpperLower   'A'
#define MagmaNonUnit   'N'
#define MagmaUnit   'U'
#define MagmaLeft   'L'
#define MagmaRight   'R'
#define MagmaForward   'F'
#define MagmaBackward   'B'
#define MagmaColumnwise   'C'
#define MagmaRowwise   'R'
#define MagmaNoVectors   'N'
#define MagmaVectors   'V'
#define MagmaNoTransStr   "NonTrans"
#define MagmaTransStr   "Trans"
#define MagmaConjTransStr   "Conj"
#define MagmaUpperStr   "Upper"
#define MagmaLowerStr   "Lower"
#define MagmaUpperLowerStr   "All"
#define MagmaNonUnitStr   "NonUnit"
#define MagmaUnitStr   "Unit"
#define MagmaLeftStr   "Left"
#define MagmaRightStr   "Right"
#define MagmaForwardStr   "Forward"
#define MagmaBackwardStr   "Backward"
#define MagmaColumnwiseStr   "Columnwise"
#define MagmaRowwiseStr   "Rowwise"
#define MagmaNoVectorsStr   "NoVectors"
#define MagmaVectorsStr   "Vectors"
#define MagmaMaxGPUs   8
#define MAGMA_SUCCESS   0
#define MAGMA_ERR_ILLEGAL_VALUE   -100
#define MAGMA_ERR_HOST_ALLOC   -102
#define MAGMA_ERR_DEVICE_ALLOC   -103
#define MAGMA_ERR_CUDASTREAM   -104
#define MAGMA_ERR_INVALID_PTR   -105
#define MAGMA_Z_SET2REAL(v, t)   {(v).x = (t); (v).y = 0.0;}
#define MAGMA_Z_EQUAL(u, v)   (((u).x == (v).x) && ((u).y == (v).y))
#define MAGMA_Z_DSCALE(v, t, s)   {(v).x = (t).x/(s); (v).y = (t).y/(s);}
#define MAGMA_Z_MAKE(r, i)   make_cuDoubleComplex((r), (i))
#define MAGMA_Z_REAL(a)   cuCreal(a)
#define MAGMA_Z_IMAG(a)   cuCimag(a)
#define MAGMA_Z_ADD(a, b)   cuCadd((a), (b))
#define MAGMA_Z_SUB(a, b)   cuCsub((a), (b))
#define MAGMA_Z_MUL(a, b)   cuCmul((a), (b))
#define MAGMA_Z_DIV(a, b)   cuCdiv((a), (b))
#define MAGMA_Z_ABS(a)   cuCabs((a))
#define MAGMA_Z_CNJG(a)   cuConj(a)
#define MAGMA_Z_NEGATE(a)   make_cuDoubleComplex( -(a).x, -(a).y )
#define MAGMA_Z_ZERO   make_cuDoubleComplex(0.0, 0.0)
#define MAGMA_Z_ONE   make_cuDoubleComplex(1.0, 0.0)
#define MAGMA_Z_HALF   make_cuDoubleComplex(0.5, 0.0)
#define MAGMA_Z_NEG_ONE   make_cuDoubleComplex(-1.0, 0.0)
#define MAGMA_Z_NEG_HALF   make_cuDoubleComplex(-0.5, 0.0)
#define MAGMA_C_SET2REAL(v, t)   {(v).x = (t); (v).y = 0.0;}
#define MAGMA_C_EQUAL(u, v)   (((u).x == (v).x) && ((u).y == (v).y))
#define MAGMA_C_DSCALE(v, t, s)   {(v).x = (t).x/(s); (v).y = (t).y/(s);}
#define MAGMA_C_MAKE(r, i)   make_cuFloatComplex((r), (i))
#define MAGMA_C_REAL(a)   cuCrealf(a)
#define MAGMA_C_IMAG(a)   cuCimagf(a)
#define MAGMA_C_ADD(a, b)   cuCaddf((a), (b))
#define MAGMA_C_SUB(a, b)   cuCsubf((a), (b))
#define MAGMA_C_MUL(a, b)   cuCmulf((a), (b))
#define MAGMA_C_DIV(a, b)   cuCdivf((a), (b))
#define MAGMA_C_ABS(a)   cuCabsf((a))
#define MAGMA_C_CNJG(a)   cuConjf(a)
#define MAGMA_C_NEGATE(a)   make_cuFloatComplex( -(a).x, -(a).y )
#define MAGMA_C_ZERO   make_cuFloatComplex(0.0, 0.0)
#define MAGMA_C_ONE   make_cuFloatComplex(1.0, 0.0)
#define MAGMA_C_HALF   make_cuFloatComplex(0.5, 0.0)
#define MAGMA_C_NEG_ONE   make_cuFloatComplex(-1.0, 0.0)
#define MAGMA_C_NEG_HALF   make_cuFloatComplex(-0.5, 0.0)
#define MAGMA_D_SET2REAL(v, t)   (v) = (t)
#define MAGMA_D_OP_NEG_ASGN(t, z)   (t) = -(z)
#define MAGMA_D_EQUAL(u, v)   ((u) == (v))
#define MAGMA_D_DSCALE(v, t, s)   (v) = (t)/(s)
#define MAGMA_D_MAKE(r, i)   (r)
#define MAGMA_D_REAL(a)   (a)
#define MAGMA_D_IMAG(a)   (a)
#define MAGMA_D_ADD(a, b)   ( (a) + (b) )
#define MAGMA_D_SUB(a, b)   ( (a) - (b) )
#define MAGMA_D_MUL(a, b)   ( (a) * (b) )
#define MAGMA_D_DIV(a, b)   ( (a) / (b) )
#define MAGMA_D_ABS(a)   ((a)>0?(a):-(a))
#define MAGMA_D_CNJG(a)   (a)
#define MAGMA_D_NEGATE(a)   (-(a))
#define MAGMA_D_ZERO   (0.0)
#define MAGMA_D_ONE   (1.0)
#define MAGMA_D_HALF   (0.5)
#define MAGMA_D_NEG_ONE   (-1.0)
#define MAGMA_D_NEG_HALF   (-0.5)
#define MAGMA_S_SET2REAL(v, t)   (v) = (t)
#define MAGMA_S_OP_NEG_ASGN(t, z)   (t) = -(z)
#define MAGMA_S_EQUAL(u, v)   ((u) == (v))
#define MAGMA_S_DSCALE(v, t, s)   (v) = (t)/(s)
#define MAGMA_S_MAKE(r, i)   (r)
#define MAGMA_S_REAL(a)   (a)
#define MAGMA_S_IMAG(a)   (a)
#define MAGMA_S_ADD(a, b)   ( (a) + (b) )
#define MAGMA_S_SUB(a, b)   ( (a) - (b) )
#define MAGMA_S_MUL(a, b)   ( (a) * (b) )
#define MAGMA_S_DIV(a, b)   ( (a) / (b) )
#define MAGMA_S_ABS(a)   ((a)>0?(a):-(a))
#define MAGMA_S_CNJG(a)   (a)
#define MAGMA_S_NEGATE(a)   (-(a))
#define MAGMA_S_ZERO   (0.0)
#define MAGMA_S_ONE   (1.0)
#define MAGMA_S_HALF   (0.5)
#define MAGMA_S_NEG_ONE   (-1.0)
#define MAGMA_S_NEG_HALF   (-0.5)
#define CBLAS_SADDR(a)   &(a)

Typedefs

typedef double real_Double_t

Functions

void magma_init (void)
void magma_finalize (void)
magma_err_t magma_malloc (magma_devptr *ptrPtr, size_t bytes)
magma_err_t magma_free (magma_devptr ptr)
magma_err_t magma_malloc_host (void **ptrPtr, size_t bytes)
magma_err_t magma_free_host (void *ptr)
magma_err_t magma_smalloc (float **ptrPtr, size_t n)
magma_err_t magma_dmalloc (double **ptrPtr, size_t n)
magma_err_t magma_cmalloc (cuFloatComplex **ptrPtr, size_t n)
magma_err_t magma_zmalloc (cuDoubleComplex **ptrPtr, size_t n)
magma_err_t magma_smalloc_host (float **ptrPtr, size_t n)
magma_err_t magma_dmalloc_host (double **ptrPtr, size_t n)
magma_err_t magma_cmalloc_host (cuFloatComplex **ptrPtr, size_t n)
magma_err_t magma_zmalloc_host (cuDoubleComplex **ptrPtr, size_t n)
void magma_getdevices (magma_device_t *devices, magma_int_t size, magma_int_t *numPtr)
void magma_getdevice (magma_device_t *dev)
void magma_setdevice (magma_device_t dev)
void magma_device_sync ()
void magma_queue_create (magma_queue_t *queuePtr)
void magma_queue_destroy (magma_queue_t queue)
void magma_queue_sync (magma_queue_t queue)
void magma_event_create (magma_event_t *eventPtr)
void magma_event_destroy (magma_event_t event)
void magma_event_record (magma_event_t event, magma_queue_t queue)
void magma_event_sync (magma_event_t event)
void magma_queue_wait_event (magma_queue_t queue, magma_event_t event)
void magma_setvector (magma_int_t n, size_t elemSize, void const *hx_src, magma_int_t incx, void *dy_dst, magma_int_t incy)
void magma_getvector (magma_int_t n, size_t elemSize, void const *dx_src, magma_int_t incx, void *hy_dst, magma_int_t incy)
void magma_setvector_async (magma_int_t n, size_t elemSize, void const *hx_src, magma_int_t incx, void *dy_dst, magma_int_t incy, magma_stream_t stream)
void magma_getvector_async (magma_int_t n, size_t elemSize, void const *dx_src, magma_int_t incx, void *hy_dst, magma_int_t incy, magma_stream_t stream)
void magma_xerbla (const char *name, magma_int_t info)

Macro Definition Documentation

#define CBLAS_SADDR (   a)    &(a)

Definition at line 179 of file magma.h.

#define MAGMA_C_ABS (   a)    cuCabsf((a))

Definition at line 129 of file magma.h.

#define MAGMA_C_ADD (   a,
 
)    cuCaddf((a), (b))

Definition at line 125 of file magma.h.

#define MAGMA_C_CNJG (   a)    cuConjf(a)

Definition at line 130 of file magma.h.

#define MAGMA_C_DIV (   a,
 
)    cuCdivf((a), (b))

Definition at line 128 of file magma.h.

#define MAGMA_C_DSCALE (   v,
  t,
 
)    {(v).x = (t).x/(s); (v).y = (t).y/(s);}

Definition at line 121 of file magma.h.

#define MAGMA_C_EQUAL (   u,
 
)    (((u).x == (v).x) && ((u).y == (v).y))

Definition at line 120 of file magma.h.

#define MAGMA_C_HALF   make_cuFloatComplex(0.5, 0.0)

Definition at line 134 of file magma.h.

#define MAGMA_C_IMAG (   a)    cuCimagf(a)

Definition at line 124 of file magma.h.

#define MAGMA_C_MAKE (   r,
 
)    make_cuFloatComplex((r), (i))

Definition at line 122 of file magma.h.

#define MAGMA_C_MUL (   a,
 
)    cuCmulf((a), (b))

Definition at line 127 of file magma.h.

#define MAGMA_C_NEG_HALF   make_cuFloatComplex(-0.5, 0.0)

Definition at line 136 of file magma.h.

#define MAGMA_C_NEG_ONE   make_cuFloatComplex(-1.0, 0.0)

Definition at line 135 of file magma.h.

#define MAGMA_C_NEGATE (   a)    make_cuFloatComplex( -(a).x, -(a).y )

Definition at line 131 of file magma.h.

#define MAGMA_C_ONE   make_cuFloatComplex(1.0, 0.0)

Definition at line 133 of file magma.h.

#define MAGMA_C_REAL (   a)    cuCrealf(a)

Definition at line 123 of file magma.h.

#define MAGMA_C_SET2REAL (   v,
 
)    {(v).x = (t); (v).y = 0.0;}

Definition at line 119 of file magma.h.

#define MAGMA_C_SUB (   a,
 
)    cuCsubf((a), (b))

Definition at line 126 of file magma.h.

#define MAGMA_C_ZERO   make_cuFloatComplex(0.0, 0.0)

Definition at line 132 of file magma.h.

#define MAGMA_D_ABS (   a)    ((a)>0?(a):-(a))

Definition at line 149 of file magma.h.

#define MAGMA_D_ADD (   a,
 
)    ( (a) + (b) )

Definition at line 145 of file magma.h.

#define MAGMA_D_CNJG (   a)    (a)

Definition at line 150 of file magma.h.

#define MAGMA_D_DIV (   a,
 
)    ( (a) / (b) )

Definition at line 148 of file magma.h.

#define MAGMA_D_DSCALE (   v,
  t,
 
)    (v) = (t)/(s)

Definition at line 141 of file magma.h.

#define MAGMA_D_EQUAL (   u,
 
)    ((u) == (v))

Definition at line 140 of file magma.h.

#define MAGMA_D_HALF   (0.5)

Definition at line 154 of file magma.h.

#define MAGMA_D_IMAG (   a)    (a)

Definition at line 144 of file magma.h.

#define MAGMA_D_MAKE (   r,
 
)    (r)

Definition at line 142 of file magma.h.

#define MAGMA_D_MUL (   a,
 
)    ( (a) * (b) )

Definition at line 147 of file magma.h.

#define MAGMA_D_NEG_HALF   (-0.5)

Definition at line 156 of file magma.h.

#define MAGMA_D_NEG_ONE   (-1.0)

Definition at line 155 of file magma.h.

#define MAGMA_D_NEGATE (   a)    (-(a))

Definition at line 151 of file magma.h.

#define MAGMA_D_ONE   (1.0)

Definition at line 153 of file magma.h.

#define MAGMA_D_OP_NEG_ASGN (   t,
 
)    (t) = -(z)

Definition at line 139 of file magma.h.

#define MAGMA_D_REAL (   a)    (a)

Definition at line 143 of file magma.h.

#define MAGMA_D_SET2REAL (   v,
 
)    (v) = (t)

Definition at line 138 of file magma.h.

#define MAGMA_D_SUB (   a,
 
)    ( (a) - (b) )

Definition at line 146 of file magma.h.

#define MAGMA_D_ZERO   (0.0)

Definition at line 152 of file magma.h.

#define MAGMA_ERR_CUDASTREAM   -104

Definition at line 89 of file magma.h.

#define MAGMA_ERR_DEVICE_ALLOC   -103

Definition at line 88 of file magma.h.

#define MAGMA_ERR_HOST_ALLOC   -102

Definition at line 87 of file magma.h.

#define MAGMA_ERR_ILLEGAL_VALUE   -100

Definition at line 86 of file magma.h.

#define MAGMA_ERR_INVALID_PTR   -105

Definition at line 90 of file magma.h.

#define MAGMA_S_ABS (   a)    ((a)>0?(a):-(a))

Definition at line 169 of file magma.h.

#define MAGMA_S_ADD (   a,
 
)    ( (a) + (b) )

Definition at line 165 of file magma.h.

#define MAGMA_S_CNJG (   a)    (a)

Definition at line 170 of file magma.h.

#define MAGMA_S_DIV (   a,
 
)    ( (a) / (b) )

Definition at line 168 of file magma.h.

#define MAGMA_S_DSCALE (   v,
  t,
 
)    (v) = (t)/(s)

Definition at line 161 of file magma.h.

#define MAGMA_S_EQUAL (   u,
 
)    ((u) == (v))

Definition at line 160 of file magma.h.

#define MAGMA_S_HALF   (0.5)

Definition at line 174 of file magma.h.

#define MAGMA_S_IMAG (   a)    (a)

Definition at line 164 of file magma.h.

#define MAGMA_S_MAKE (   r,
 
)    (r)

Definition at line 162 of file magma.h.

#define MAGMA_S_MUL (   a,
 
)    ( (a) * (b) )

Definition at line 167 of file magma.h.

#define MAGMA_S_NEG_HALF   (-0.5)

Definition at line 176 of file magma.h.

#define MAGMA_S_NEG_ONE   (-1.0)

Definition at line 175 of file magma.h.

#define MAGMA_S_NEGATE (   a)    (-(a))

Definition at line 171 of file magma.h.

#define MAGMA_S_ONE   (1.0)

Definition at line 173 of file magma.h.

#define MAGMA_S_OP_NEG_ASGN (   t,
 
)    (t) = -(z)

Definition at line 159 of file magma.h.

#define MAGMA_S_REAL (   a)    (a)

Definition at line 163 of file magma.h.

#define MAGMA_S_SET2REAL (   v,
 
)    (v) = (t)

Definition at line 158 of file magma.h.

#define MAGMA_S_SUB (   a,
 
)    ( (a) - (b) )

Definition at line 166 of file magma.h.

#define MAGMA_S_ZERO   (0.0)

Definition at line 172 of file magma.h.

#define MAGMA_SUCCESS   0

Definition at line 85 of file magma.h.

#define MAGMA_Z_ABS (   a)    cuCabs((a))

Definition at line 110 of file magma.h.

#define MAGMA_Z_ADD (   a,
 
)    cuCadd((a), (b))

Definition at line 106 of file magma.h.

#define MAGMA_Z_CNJG (   a)    cuConj(a)

Definition at line 111 of file magma.h.

#define MAGMA_Z_DIV (   a,
 
)    cuCdiv((a), (b))

Definition at line 109 of file magma.h.

#define MAGMA_Z_DSCALE (   v,
  t,
 
)    {(v).x = (t).x/(s); (v).y = (t).y/(s);}

Definition at line 102 of file magma.h.

#define MAGMA_Z_EQUAL (   u,
 
)    (((u).x == (v).x) && ((u).y == (v).y))

Definition at line 101 of file magma.h.

#define MAGMA_Z_HALF   make_cuDoubleComplex(0.5, 0.0)

Definition at line 115 of file magma.h.

#define MAGMA_Z_IMAG (   a)    cuCimag(a)

Definition at line 105 of file magma.h.

#define MAGMA_Z_MAKE (   r,
 
)    make_cuDoubleComplex((r), (i))

Definition at line 103 of file magma.h.

#define MAGMA_Z_MUL (   a,
 
)    cuCmul((a), (b))

Definition at line 108 of file magma.h.

#define MAGMA_Z_NEG_HALF   make_cuDoubleComplex(-0.5, 0.0)

Definition at line 117 of file magma.h.

#define MAGMA_Z_NEG_ONE   make_cuDoubleComplex(-1.0, 0.0)

Definition at line 116 of file magma.h.

#define MAGMA_Z_NEGATE (   a)    make_cuDoubleComplex( -(a).x, -(a).y )

Definition at line 112 of file magma.h.

#define MAGMA_Z_ONE   make_cuDoubleComplex(1.0, 0.0)

Definition at line 114 of file magma.h.

#define MAGMA_Z_REAL (   a)    cuCreal(a)

Definition at line 104 of file magma.h.

#define MAGMA_Z_SET2REAL (   v,
 
)    {(v).x = (t); (v).y = 0.0;}

Definition at line 100 of file magma.h.

#define MAGMA_Z_SUB (   a,
 
)    cuCsub((a), (b))

Definition at line 107 of file magma.h.

#define MAGMA_Z_ZERO   make_cuDoubleComplex(0.0, 0.0)

Definition at line 113 of file magma.h.

#define MagmaBackward   'B'

Definition at line 49 of file magma.h.

#define MagmaBackwardStr   "Backward"

Definition at line 72 of file magma.h.

#define MagmaColumnwise   'C'

Definition at line 51 of file magma.h.

#define MagmaColumnwiseStr   "Columnwise"

Definition at line 74 of file magma.h.

#define MagmaConjTrans   'C'

Definition at line 36 of file magma.h.

#define MagmaConjTransStr   "Conj"

Definition at line 59 of file magma.h.

#define MagmaForward   'F'

Definition at line 48 of file magma.h.

#define MagmaForwardStr   "Forward"

Definition at line 71 of file magma.h.

#define MagmaLeft   'L'

Definition at line 45 of file magma.h.

#define MagmaLeftStr   "Left"

Definition at line 68 of file magma.h.

#define MagmaLower   'L'

Definition at line 39 of file magma.h.

#define MagmaLowerStr   "Lower"

Definition at line 62 of file magma.h.

#define MagmaMaxGPUs   8

Definition at line 80 of file magma.h.

#define MagmaNonUnit   'N'

Definition at line 42 of file magma.h.

#define MagmaNonUnitStr   "NonUnit"

Definition at line 65 of file magma.h.

#define MagmaNoTrans   'N'

Definition at line 34 of file magma.h.

#define MagmaNoTransStr   "NonTrans"

Definition at line 57 of file magma.h.

#define MagmaNoVectors   'N'

Definition at line 54 of file magma.h.

#define MagmaNoVectorsStr   "NoVectors"

Definition at line 77 of file magma.h.

#define MagmaRight   'R'

Definition at line 46 of file magma.h.

#define MagmaRightStr   "Right"

Definition at line 69 of file magma.h.

#define MagmaRowwise   'R'

Definition at line 52 of file magma.h.

#define MagmaRowwiseStr   "Rowwise"

Definition at line 75 of file magma.h.

#define MagmaTrans   'T'

Definition at line 35 of file magma.h.

#define MagmaTransStr   "Trans"

Definition at line 58 of file magma.h.

#define MagmaUnit   'U'

Definition at line 43 of file magma.h.

#define MagmaUnitStr   "Unit"

Definition at line 66 of file magma.h.

#define MagmaUpper   'U'

Definition at line 38 of file magma.h.

#define MagmaUpperLower   'A'

Definition at line 40 of file magma.h.

#define MagmaUpperLowerStr   "All"

Definition at line 63 of file magma.h.

#define MagmaUpperStr   "Upper"

Definition at line 61 of file magma.h.

#define MagmaVectors   'V'

Definition at line 55 of file magma.h.

#define MagmaVectorsStr   "Vectors"

Definition at line 78 of file magma.h.


Typedef Documentation

typedef double real_Double_t

Definition at line 95 of file magma.h.


Function Documentation

magma_err_t magma_cmalloc ( cuFloatComplex **  ptrPtr,
size_t  n 
)
inline

Definition at line 209 of file magma.h.

References magma_malloc().

{ return magma_malloc( (void**) ptrPtr, n*sizeof(cuFloatComplex) ); }

Here is the call graph for this function:

Here is the caller graph for this function:

magma_err_t magma_cmalloc_host ( cuFloatComplex **  ptrPtr,
size_t  n 
)
inline

Definition at line 214 of file magma.h.

References magma_malloc_host().

{ return magma_malloc_host( (void**) ptrPtr, n*sizeof(cuFloatComplex) ); }

Here is the call graph for this function:

Here is the caller graph for this function:

void magma_device_sync ( )

Here is the caller graph for this function:

magma_err_t magma_dmalloc ( double **  ptrPtr,
size_t  n 
)
inline

Definition at line 208 of file magma.h.

References magma_malloc().

{ return magma_malloc( (void**) ptrPtr, n*sizeof(double) ); }

Here is the call graph for this function:

magma_err_t magma_dmalloc_host ( double **  ptrPtr,
size_t  n 
)
inline

Definition at line 213 of file magma.h.

References magma_malloc_host().

{ return magma_malloc_host( (void**) ptrPtr, n*sizeof(double) ); }

Here is the call graph for this function:

Here is the caller graph for this function:

void magma_event_create ( magma_event_t eventPtr)

Here is the caller graph for this function:

void magma_event_destroy ( magma_event_t  event)

Here is the caller graph for this function:

void magma_event_record ( magma_event_t  event,
magma_queue_t  queue 
)

Here is the caller graph for this function:

void magma_event_sync ( magma_event_t  event)
void magma_finalize ( void  )
magma_err_t magma_free ( magma_devptr  ptr)
magma_err_t magma_free_host ( void *  ptr)
void magma_getdevice ( magma_device_t dev)

Here is the caller graph for this function:

void magma_getdevices ( magma_device_t devices,
magma_int_t  size,
magma_int_t numPtr 
)
void magma_getvector ( magma_int_t  n,
size_t  elemSize,
void const *  dx_src,
magma_int_t  incx,
void *  hy_dst,
magma_int_t  incy 
)
void magma_getvector_async ( magma_int_t  n,
size_t  elemSize,
void const *  dx_src,
magma_int_t  incx,
void *  hy_dst,
magma_int_t  incy,
magma_stream_t  stream 
)
void magma_init ( void  )
magma_err_t magma_malloc ( magma_devptr ptrPtr,
size_t  bytes 
)

Here is the caller graph for this function:

magma_err_t magma_malloc_host ( void **  ptrPtr,
size_t  bytes 
)

Here is the caller graph for this function:

void magma_queue_create ( magma_queue_t queuePtr)
void magma_queue_destroy ( magma_queue_t  queue)
void magma_queue_sync ( magma_queue_t  queue)
void magma_queue_wait_event ( magma_queue_t  queue,
magma_event_t  event 
)

Here is the caller graph for this function:

void magma_setdevice ( magma_device_t  dev)
void magma_setvector ( magma_int_t  n,
size_t  elemSize,
void const *  hx_src,
magma_int_t  incx,
void *  dy_dst,
magma_int_t  incy 
)

Here is the caller graph for this function:

void magma_setvector_async ( magma_int_t  n,
size_t  elemSize,
void const *  hx_src,
magma_int_t  incx,
void *  dy_dst,
magma_int_t  incy,
magma_stream_t  stream 
)
magma_err_t magma_smalloc ( float **  ptrPtr,
size_t  n 
)
inline

Definition at line 207 of file magma.h.

References magma_malloc().

{ return magma_malloc( (void**) ptrPtr, n*sizeof(float) ); }

Here is the call graph for this function:

magma_err_t magma_smalloc_host ( float **  ptrPtr,
size_t  n 
)
inline

Definition at line 212 of file magma.h.

References magma_malloc_host().

{ return magma_malloc_host( (void**) ptrPtr, n*sizeof(float) ); }

Here is the call graph for this function:

Here is the caller graph for this function:

void magma_xerbla ( const char *  name,
magma_int_t  info 
)

Definition at line 8 of file xerbla.cpp.

References lapackf77_xerbla.

{
/* -- MAGMA (version 1.2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
May 2012
Purpose
=======
magma_xerbla is an error handler for the MAGMA routines.
It is called by a MAGMA routine if an input parameter has an
invalid value. It calls the LAPACK XERBLA routine, which by default
prints an error message and stops execution.
Installers may consider modifying the STOP statement in order to
call system-specific exception-handling facilities.
Arguments
=========
SRNAME (input) CHARACTER*(*)
The name of the routine which called XERBLA.
In C it is convenient to use __func__.
INFO (input) INTEGER
The position of the invalid parameter in the parameter list
of the calling routine.
===================================================================== */
int len = strlen( srname );
lapackf77_xerbla( srname, &info, len );
}
magma_err_t magma_zmalloc ( cuDoubleComplex **  ptrPtr,
size_t  n 
)
inline

Definition at line 210 of file magma.h.

References magma_malloc().

{ return magma_malloc( (void**) ptrPtr, n*sizeof(cuDoubleComplex) ); }

Here is the call graph for this function:

Here is the caller graph for this function:

magma_err_t magma_zmalloc_host ( cuDoubleComplex **  ptrPtr,
size_t  n 
)
inline

Definition at line 215 of file magma.h.

References magma_malloc_host().

{ return magma_malloc_host( (void**) ptrPtr, n*sizeof(cuDoubleComplex) ); }

Here is the call graph for this function:

Here is the caller graph for this function: