COMPASS  5.4.4
End-to-end AO simulation tool using GPU acceleration
carmaWrap.obj_float Class Reference
Collaboration diagram for carmaWrap.obj_float:

Public Member Functions

None __init__ (self, context context, numpy.ndarray[numpy.float32] h_data)
 TODO. More...
 
None __init__ (self, context context, obj_float d_data)
 
str __repr__ (self)
 
int add_stream (self)
 TODO. More...
 
int add_stream (self, int np)
 
int aimax (self, int incx=1)
 TODO. More...
 
int aimin (self, int incx=1)
 TODO. More...
 
float asum (self, int incx=1)
 TODO. More...
 
None axpy (self, float alpha, obj_float source, int incx=1, int incy=1, int offset=0)
 TODO. More...
 
None clip (self, float data_min, float data_max)
 TODO. More...
 
None copy (self, obj_float arg0, int arg1, int arg2)
 TODO. More...
 
None copy_from (self, obj_float data, int nb_elem=-1)
 TODO. More...
 
None copy_into (self, obj_float dest, int nb_elem=-1)
 TODO. More...
 
int del_stream (self)
 TODO. More...
 
int del_stream (self, int np)
 
int destroy_prng (self)
 
int destroy_prng_host (self)
 
None device2host (self, numpy.ndarray[numpy.float32] data)
 TODO. More...
 
obj_float dgmm (self, obj_float vectX, float alpha=1, str side='r', obj_float matC=None, int incx=1)
 this method performs one of the matrix‐marix operations matC = diag(vectX)*matA if side='l' More...
 
float dot (self, obj_float source, int incx=1, int incy=1)
 TODO. More...
 
None fft (self, obj_float dest=None, int direction=1)
 
obj_float geam (self, obj_float matB, str opA='N', str opB='N', float alpha=1, obj_float matC=None, float beta=0)
 this method performs the symmetric rank- k update More...
 
obj_float gemm (self, obj_float matB, str op_a='N', str op_b='N', float alpha=1, obj_float matC=None, float beta=0)
 this method performs one of the matrix‐marix operations matC = alpha * op_a(matA) * op_b(matB) + beta * matC More...
 
obj_float gemv (self, obj_float vectx, float alpha=1, str op='N', obj_float vecty=None, float beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More...
 
obj_float ger (self, obj_float vecty, obj_float mat=None, float alpha=1)
 this method performs the symmetric rank 1 operation A = alpha * x * y T + A More...
 
None host2device (self, numpy.ndarray[numpy.float32] data)
 TODO. More...
 
int init_prng (self)
 
int init_prng (self, int arg0)
 
int init_prng_host (self, int arg0)
 
None init_reduceCub (self)
 TODO. More...
 
bool is_rng_init (self)
 
obj_float magma_gemv (self, obj_float vectx, float alpha=1, str op='N', obj_float vecty=None, float beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More...
 
float nrm2 (self, int incx=1)
 TODO. More...
 
int prng (self, float arg0, str arg1, float arg2, float arg3)
 
int prng (self, float arg0, str arg1, float arg2)
 
int prng (self, str arg0, float arg1, float arg2)
 
int prng (self, str arg0, float arg1)
 
int prng (self, str arg0)
 
int prng_host (self, str arg0)
 
int prng_host (self, str arg0, float arg1)
 
int prng_host (self, str arg0, float arg1, float arg2)
 
int prng_montagn (self, float arg0)
 
None random (self, int seed=1234, str j='U')
 
None random_host (self, int seed=1234, str j='U')
 
None reduceCub (self)
 TODO. More...
 
int reset (self)
 TODO. More...
 
None rot (self, obj_float arg0, int arg1, int arg2, float arg3, float arg4)
 TODO. More...
 
None scale (self, float scale, int incx=1)
 TODO. More...
 
float sum (self)
 TODO. More...
 
None swap (self, obj_float source, int incx=1, int incy=1)
 TODO. More...
 
None swap_ptr (self, obj_float ptr)
 TODO. More...
 
obj_float symm (self, obj_float matB, float alpha=1, obj_float matC=None, float beta=0, str side='l', str uplo='u')
 this method performs one of the matrix‐marix operations matC = alpha * matA * matB + beta * C More...
 
obj_float symv (self, obj_float vectx, float alpha=1, str uplo='l', obj_float vecty=None, float beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty More...
 
obj_float syrk (self, str fill='U', str op='N', float alpha=1, obj_float matC=None, float beta=0)
 this method performs the symmetric rank- k update More...
 
obj_float syrkx (self, obj_float matB, str fill='U', str op='N', float alpha=1, obj_float matC=None, float beta=0)
 this method performs the symmetric rank- k update More...
 
object to_cupy (self)
 TODO. More...
 
int transpose (self, obj_float source)
 TODO. More...
 
int wait_all_streams (self)
 TODO. More...
 
int wait_stream (self, int steam)
 TODO. More...
 

Properties

 context = property
 TODO. More...
 
 d_ptr = property
 TODO. More...
 
 device = property
 TODO. More...
 
 nbElem = property
 TODO. More...
 
 nb_streams = property
 TODO. More...
 
 o_data = property
 TODO. More...
 
 shape = property
 TODO. More...
 

Detailed Description

Definition at line 816 of file carmaWrap.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None carmaWrap.obj_float.__init__ (   self,
context  context,
numpy.ndarray[numpy.float32]  h_data 
)

TODO.

   TODO

Definition at line 823 of file carmaWrap.py.

Here is the caller graph for this function:

◆ __init__() [2/2]

None carmaWrap.obj_float.__init__ (   self,
context  context,
obj_float  d_data 
)

Definition at line 825 of file carmaWrap.py.

Here is the call graph for this function:

Member Function Documentation

◆ __repr__()

str carmaWrap.obj_float.__repr__ (   self)

Definition at line 826 of file carmaWrap.py.

◆ add_stream() [1/2]

int carmaWrap.obj_float.add_stream (   self)

TODO.

   TODO

Definition at line 833 of file carmaWrap.py.

Here is the caller graph for this function:

◆ add_stream() [2/2]

int carmaWrap.obj_float.add_stream (   self,
int  np 
)

Definition at line 835 of file carmaWrap.py.

Here is the call graph for this function:

◆ aimax()

int carmaWrap.obj_float.aimax (   self,
int   incx = 1 
)

TODO.

Definition at line 839 of file carmaWrap.py.

◆ aimin()

int carmaWrap.obj_float.aimin (   self,
int   incx = 1 
)

TODO.

Definition at line 843 of file carmaWrap.py.

◆ asum()

float carmaWrap.obj_float.asum (   self,
int   incx = 1 
)

TODO.

Definition at line 847 of file carmaWrap.py.

◆ axpy()

None carmaWrap.obj_float.axpy (   self,
float  alpha,
obj_float  source,
int   incx = 1,
int   incy = 1,
int   offset = 0 
)

TODO.

Definition at line 851 of file carmaWrap.py.

◆ clip()

None carmaWrap.obj_float.clip (   self,
float  data_min,
float  data_max 
)

TODO.

Definition at line 855 of file carmaWrap.py.

◆ copy()

None carmaWrap.obj_float.copy (   self,
obj_float  arg0,
int  arg1,
int  arg2 
)

TODO.

Definition at line 859 of file carmaWrap.py.

◆ copy_from()

None carmaWrap.obj_float.copy_from (   self,
obj_float  data,
int   nb_elem = -1 
)

TODO.

Definition at line 863 of file carmaWrap.py.

◆ copy_into()

None carmaWrap.obj_float.copy_into (   self,
obj_float  dest,
int   nb_elem = -1 
)

TODO.

Definition at line 867 of file carmaWrap.py.

◆ del_stream() [1/2]

int carmaWrap.obj_float.del_stream (   self)

TODO.

   TODO

Definition at line 874 of file carmaWrap.py.

Here is the caller graph for this function:

◆ del_stream() [2/2]

int carmaWrap.obj_float.del_stream (   self,
int  np 
)

Definition at line 876 of file carmaWrap.py.

Here is the call graph for this function:

◆ destroy_prng()

int carmaWrap.obj_float.destroy_prng (   self)

Definition at line 877 of file carmaWrap.py.

◆ destroy_prng_host()

int carmaWrap.obj_float.destroy_prng_host (   self)

Definition at line 878 of file carmaWrap.py.

◆ device2host()

None carmaWrap.obj_float.device2host (   self,
numpy.ndarray[numpy.float32]  data 
)

TODO.

Definition at line 882 of file carmaWrap.py.

◆ dgmm()

obj_float carmaWrap.obj_float.dgmm (   self,
obj_float  vectX,
float   alpha = 1,
str   side = 'r',
obj_float   matC = None,
int   incx = 1 
)

this method performs one of the matrix‐marix operations matC = diag(vectX)*matA if side='l'

Definition at line 886 of file carmaWrap.py.

◆ dot()

float carmaWrap.obj_float.dot (   self,
obj_float  source,
int   incx = 1,
int   incy = 1 
)

TODO.

Definition at line 890 of file carmaWrap.py.

◆ fft()

None carmaWrap.obj_float.fft (   self,
obj_float   dest = None,
int   direction = 1 
)

Definition at line 891 of file carmaWrap.py.

◆ geam()

obj_float carmaWrap.obj_float.geam (   self,
obj_float  matB,
str   opA = 'N',
str   opB = 'N',
float   alpha = 1,
obj_float   matC = None,
float   beta = 0 
)

this method performs the symmetric rank- k update

Definition at line 895 of file carmaWrap.py.

◆ gemm()

obj_float carmaWrap.obj_float.gemm (   self,
obj_float  matB,
str   op_a = 'N',
str   op_b = 'N',
float   alpha = 1,
obj_float   matC = None,
float   beta = 0 
)

this method performs one of the matrix‐marix operations matC = alpha * op_a(matA) * op_b(matB) + beta * matC

Definition at line 899 of file carmaWrap.py.

◆ gemv()

obj_float carmaWrap.obj_float.gemv (   self,
obj_float  vectx,
float   alpha = 1,
str   op = 'N',
obj_float   vecty = None,
float   beta = 0 
)

this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty

Definition at line 903 of file carmaWrap.py.

◆ ger()

obj_float carmaWrap.obj_float.ger (   self,
obj_float  vecty,
obj_float   mat = None,
float   alpha = 1 
)

this method performs the symmetric rank 1 operation A = alpha * x * y T + A

Definition at line 907 of file carmaWrap.py.

◆ host2device()

None carmaWrap.obj_float.host2device (   self,
numpy.ndarray[numpy.float32]  data 
)

TODO.

Definition at line 911 of file carmaWrap.py.

◆ init_prng() [1/2]

int carmaWrap.obj_float.init_prng (   self)

Definition at line 913 of file carmaWrap.py.

Here is the caller graph for this function:

◆ init_prng() [2/2]

int carmaWrap.obj_float.init_prng (   self,
int  arg0 
)

Definition at line 915 of file carmaWrap.py.

Here is the call graph for this function:

◆ init_prng_host()

int carmaWrap.obj_float.init_prng_host (   self,
int  arg0 
)

Definition at line 916 of file carmaWrap.py.

◆ init_reduceCub()

None carmaWrap.obj_float.init_reduceCub (   self)

TODO.

Definition at line 920 of file carmaWrap.py.

◆ is_rng_init()

bool carmaWrap.obj_float.is_rng_init (   self)

Definition at line 921 of file carmaWrap.py.

◆ magma_gemv()

obj_float carmaWrap.obj_float.magma_gemv (   self,
obj_float  vectx,
float   alpha = 1,
str   op = 'N',
obj_float   vecty = None,
float   beta = 0 
)

this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty

Definition at line 925 of file carmaWrap.py.

◆ nrm2()

float carmaWrap.obj_float.nrm2 (   self,
int   incx = 1 
)

TODO.

Definition at line 929 of file carmaWrap.py.

◆ prng() [1/5]

int carmaWrap.obj_float.prng (   self,
float  arg0,
str  arg1,
float  arg2 
)

Definition at line 933 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [2/5]

int carmaWrap.obj_float.prng (   self,
float  arg0,
str  arg1,
float  arg2,
float  arg3 
)

Definition at line 931 of file carmaWrap.py.

Here is the caller graph for this function:

◆ prng() [3/5]

int carmaWrap.obj_float.prng (   self,
str  arg0 
)

Definition at line 939 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [4/5]

int carmaWrap.obj_float.prng (   self,
str  arg0,
float  arg1 
)

Definition at line 937 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [5/5]

int carmaWrap.obj_float.prng (   self,
str  arg0,
float  arg1,
float  arg2 
)

Definition at line 935 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_host() [1/3]

int carmaWrap.obj_float.prng_host (   self,
str  arg0 
)

Definition at line 941 of file carmaWrap.py.

Here is the caller graph for this function:

◆ prng_host() [2/3]

int carmaWrap.obj_float.prng_host (   self,
str  arg0,
float  arg1 
)

Definition at line 943 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_host() [3/3]

int carmaWrap.obj_float.prng_host (   self,
str  arg0,
float  arg1,
float  arg2 
)

Definition at line 945 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_montagn()

int carmaWrap.obj_float.prng_montagn (   self,
float  arg0 
)

Definition at line 946 of file carmaWrap.py.

◆ random()

None carmaWrap.obj_float.random (   self,
int   seed = 1234,
str   j = 'U' 
)

Definition at line 947 of file carmaWrap.py.

◆ random_host()

None carmaWrap.obj_float.random_host (   self,
int   seed = 1234,
str   j = 'U' 
)

Definition at line 948 of file carmaWrap.py.

◆ reduceCub()

None carmaWrap.obj_float.reduceCub (   self)

TODO.

Definition at line 952 of file carmaWrap.py.

◆ reset()

int carmaWrap.obj_float.reset (   self)

TODO.

Definition at line 956 of file carmaWrap.py.

◆ rot()

None carmaWrap.obj_float.rot (   self,
obj_float  arg0,
int  arg1,
int  arg2,
float  arg3,
float  arg4 
)

TODO.

Definition at line 960 of file carmaWrap.py.

◆ scale()

None carmaWrap.obj_float.scale (   self,
float  scale,
int   incx = 1 
)

TODO.

Definition at line 964 of file carmaWrap.py.

◆ sum()

float carmaWrap.obj_float.sum (   self)

TODO.

Definition at line 968 of file carmaWrap.py.

◆ swap()

None carmaWrap.obj_float.swap (   self,
obj_float  source,
int   incx = 1,
int   incy = 1 
)

TODO.

Definition at line 972 of file carmaWrap.py.

◆ swap_ptr()

None carmaWrap.obj_float.swap_ptr (   self,
obj_float  ptr 
)

TODO.

Definition at line 976 of file carmaWrap.py.

◆ symm()

obj_float carmaWrap.obj_float.symm (   self,
obj_float  matB,
float   alpha = 1,
obj_float   matC = None,
float   beta = 0,
str   side = 'l',
str   uplo = 'u' 
)

this method performs one of the matrix‐marix operations matC = alpha * matA * matB + beta * C

Definition at line 980 of file carmaWrap.py.

◆ symv()

obj_float carmaWrap.obj_float.symv (   self,
obj_float  vectx,
float   alpha = 1,
str   uplo = 'l',
obj_float   vecty = None,
float   beta = 0 
)

this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty

Definition at line 984 of file carmaWrap.py.

◆ syrk()

obj_float carmaWrap.obj_float.syrk (   self,
str   fill = 'U',
str   op = 'N',
float   alpha = 1,
obj_float   matC = None,
float   beta = 0 
)

this method performs the symmetric rank- k update

Definition at line 988 of file carmaWrap.py.

◆ syrkx()

obj_float carmaWrap.obj_float.syrkx (   self,
obj_float  matB,
str   fill = 'U',
str   op = 'N',
float   alpha = 1,
obj_float   matC = None,
float   beta = 0 
)

this method performs the symmetric rank- k update

Definition at line 992 of file carmaWrap.py.

◆ to_cupy()

object carmaWrap.obj_float.to_cupy (   self)

TODO.

Definition at line 996 of file carmaWrap.py.

◆ transpose()

int carmaWrap.obj_float.transpose (   self,
obj_float  source 
)

TODO.

Definition at line 1000 of file carmaWrap.py.

◆ wait_all_streams()

int carmaWrap.obj_float.wait_all_streams (   self)

TODO.

Definition at line 1004 of file carmaWrap.py.

◆ wait_stream()

int carmaWrap.obj_float.wait_stream (   self,
int  steam 
)

TODO.

Definition at line 1008 of file carmaWrap.py.

Property Documentation

◆ context

carmaWrap.obj_float.context = property
static

TODO.

   @n type of :  context

Definition at line 1015 of file carmaWrap.py.

◆ d_ptr

carmaWrap.obj_float.d_ptr = property
static

TODO.

   @n type of :  int

Definition at line 1024 of file carmaWrap.py.

◆ device

carmaWrap.obj_float.device = property
static

TODO.

   @n type of :  int

Definition at line 1033 of file carmaWrap.py.

◆ nb_streams

carmaWrap.obj_float.nb_streams = property
static

TODO.

   @n type of :  int

Definition at line 1051 of file carmaWrap.py.

◆ nbElem

carmaWrap.obj_float.nbElem = property
static

TODO.

   @n type of :  int

Definition at line 1042 of file carmaWrap.py.

◆ o_data

carmaWrap.obj_float.o_data = property
static

TODO.

   @n type of :  float

Definition at line 1060 of file carmaWrap.py.

◆ shape

carmaWrap.obj_float.shape = property
static

TODO.

   @n type of :  numpy.ndarray[numpy.int64]

Definition at line 1069 of file carmaWrap.py.


The documentation for this class was generated from the following file: