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

Public Member Functions

None __init__ (self, context context, numpy.ndarray[numpy.int32] h_data)
 TODO. More...
 
None __init__ (self, context context, obj_int 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...
 
int asum (self, int incx=1)
 TODO. More...
 
None axpy (self, int alpha, obj_int source, int incx=1, int incy=1, int offset=0)
 TODO. More...
 
None clip (self, int data_min, int data_max)
 TODO. More...
 
None copy (self, obj_int arg0, int arg1, int arg2)
 TODO. More...
 
None copy_from (self, obj_int data, int nb_elem=-1)
 TODO. More...
 
None copy_into (self, obj_int 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.int32] data)
 TODO. More...
 
obj_int dgmm (self, obj_int vectX, int alpha=1, str side='r', obj_int matC=None, int incx=1)
 this method performs one of the matrix‐marix operations matC = diag(vectX)*matA if side='l' More...
 
int dot (self, obj_int source, int incx=1, int incy=1)
 TODO. More...
 
None fft (self, obj_int dest=None, int direction=1)
 
obj_int geam (self, obj_int matB, str opA='N', str opB='N', int alpha=1, obj_int matC=None, int beta=0)
 this method performs the symmetric rank- k update More...
 
obj_int gemm (self, obj_int matB, str op_a='N', str op_b='N', int alpha=1, obj_int matC=None, int beta=0)
 this method performs one of the matrix‐marix operations matC = alpha * op_a(matA) * op_b(matB) + beta * matC More...
 
obj_int gemv (self, obj_int vectx, int alpha=1, str op='N', obj_int vecty=None, int beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More...
 
obj_int ger (self, obj_int vecty, obj_int mat=None, int alpha=1)
 this method performs the symmetric rank 1 operation A = alpha * x * y T + A More...
 
None host2device (self, numpy.ndarray[numpy.int32] 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_int magma_gemv (self, obj_int vectx, int alpha=1, str op='N', obj_int vecty=None, int beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More...
 
int nrm2 (self, int incx=1)
 TODO. More...
 
int prng (self, int arg0, str arg1, float arg2, float arg3)
 
int prng (self, int 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, int arg1)
 
int prng_host (self, str arg0, int arg1, int 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_int arg0, int arg1, int arg2, int arg3, int arg4)
 TODO. More...
 
None scale (self, int scale, int incx=1)
 TODO. More...
 
int sum (self)
 TODO. More...
 
None swap (self, obj_int source, int incx=1, int incy=1)
 TODO. More...
 
None swap_ptr (self, obj_int ptr)
 TODO. More...
 
obj_int symm (self, obj_int matB, int alpha=1, obj_int matC=None, int 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_int symv (self, obj_int vectx, int alpha=1, str uplo='l', obj_int vecty=None, int beta=0)
 this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty More...
 
obj_int syrk (self, str fill='U', str op='N', int alpha=1, obj_int matC=None, int beta=0)
 this method performs the symmetric rank- k update More...
 
obj_int syrkx (self, obj_int matB, str fill='U', str op='N', int alpha=1, obj_int matC=None, int beta=0)
 this method performs the symmetric rank- k update More...
 
object to_cupy (self)
 TODO. More...
 
int transpose (self, obj_int 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 1223 of file carmaWrap.py.

Constructor & Destructor Documentation

◆ __init__() [1/2]

None carmaWrap.obj_int.__init__ (   self,
context  context,
numpy.ndarray[numpy.int32]  h_data 
)

TODO.

   TODO

Definition at line 1230 of file carmaWrap.py.

Here is the caller graph for this function:

◆ __init__() [2/2]

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

Definition at line 1232 of file carmaWrap.py.

Here is the call graph for this function:

Member Function Documentation

◆ __repr__()

str carmaWrap.obj_int.__repr__ (   self)

Definition at line 1233 of file carmaWrap.py.

◆ add_stream() [1/2]

int carmaWrap.obj_int.add_stream (   self)

TODO.

   TODO

Definition at line 1240 of file carmaWrap.py.

Here is the caller graph for this function:

◆ add_stream() [2/2]

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

Definition at line 1242 of file carmaWrap.py.

Here is the call graph for this function:

◆ aimax()

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

TODO.

Definition at line 1246 of file carmaWrap.py.

◆ aimin()

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

TODO.

Definition at line 1250 of file carmaWrap.py.

◆ asum()

int carmaWrap.obj_int.asum (   self,
int   incx = 1 
)

TODO.

Definition at line 1254 of file carmaWrap.py.

◆ axpy()

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

TODO.

Definition at line 1258 of file carmaWrap.py.

◆ clip()

None carmaWrap.obj_int.clip (   self,
int  data_min,
int  data_max 
)

TODO.

Definition at line 1262 of file carmaWrap.py.

◆ copy()

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

TODO.

Definition at line 1266 of file carmaWrap.py.

◆ copy_from()

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

TODO.

Definition at line 1270 of file carmaWrap.py.

◆ copy_into()

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

TODO.

Definition at line 1274 of file carmaWrap.py.

◆ del_stream() [1/2]

int carmaWrap.obj_int.del_stream (   self)

TODO.

   TODO

Definition at line 1281 of file carmaWrap.py.

Here is the caller graph for this function:

◆ del_stream() [2/2]

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

Definition at line 1283 of file carmaWrap.py.

Here is the call graph for this function:

◆ destroy_prng()

int carmaWrap.obj_int.destroy_prng (   self)

Definition at line 1284 of file carmaWrap.py.

◆ destroy_prng_host()

int carmaWrap.obj_int.destroy_prng_host (   self)

Definition at line 1285 of file carmaWrap.py.

◆ device2host()

None carmaWrap.obj_int.device2host (   self,
numpy.ndarray[numpy.int32]  data 
)

TODO.

Definition at line 1289 of file carmaWrap.py.

◆ dgmm()

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

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

Definition at line 1293 of file carmaWrap.py.

◆ dot()

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

TODO.

Definition at line 1297 of file carmaWrap.py.

◆ fft()

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

Definition at line 1298 of file carmaWrap.py.

◆ geam()

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

this method performs the symmetric rank- k update

Definition at line 1302 of file carmaWrap.py.

◆ gemm()

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

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

Definition at line 1306 of file carmaWrap.py.

◆ gemv()

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

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

Definition at line 1310 of file carmaWrap.py.

◆ ger()

obj_int carmaWrap.obj_int.ger (   self,
obj_int  vecty,
obj_int   mat = None,
int   alpha = 1 
)

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

Definition at line 1314 of file carmaWrap.py.

◆ host2device()

None carmaWrap.obj_int.host2device (   self,
numpy.ndarray[numpy.int32]  data 
)

TODO.

Definition at line 1318 of file carmaWrap.py.

◆ init_prng() [1/2]

int carmaWrap.obj_int.init_prng (   self)

Definition at line 1320 of file carmaWrap.py.

Here is the caller graph for this function:

◆ init_prng() [2/2]

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

Definition at line 1322 of file carmaWrap.py.

Here is the call graph for this function:

◆ init_prng_host()

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

Definition at line 1323 of file carmaWrap.py.

◆ init_reduceCub()

None carmaWrap.obj_int.init_reduceCub (   self)

TODO.

Definition at line 1327 of file carmaWrap.py.

◆ is_rng_init()

bool carmaWrap.obj_int.is_rng_init (   self)

Definition at line 1328 of file carmaWrap.py.

◆ magma_gemv()

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

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

Definition at line 1332 of file carmaWrap.py.

◆ nrm2()

int carmaWrap.obj_int.nrm2 (   self,
int   incx = 1 
)

TODO.

Definition at line 1336 of file carmaWrap.py.

◆ prng() [1/5]

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

Definition at line 1340 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [2/5]

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

Definition at line 1338 of file carmaWrap.py.

Here is the caller graph for this function:

◆ prng() [3/5]

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

Definition at line 1346 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [4/5]

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

Definition at line 1344 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng() [5/5]

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

Definition at line 1342 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_host() [1/3]

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

Definition at line 1348 of file carmaWrap.py.

Here is the caller graph for this function:

◆ prng_host() [2/3]

int carmaWrap.obj_int.prng_host (   self,
str  arg0,
int  arg1 
)

Definition at line 1350 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_host() [3/3]

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

Definition at line 1352 of file carmaWrap.py.

Here is the call graph for this function:

◆ prng_montagn()

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

Definition at line 1353 of file carmaWrap.py.

◆ random()

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

Definition at line 1354 of file carmaWrap.py.

◆ random_host()

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

Definition at line 1355 of file carmaWrap.py.

◆ reduceCub()

None carmaWrap.obj_int.reduceCub (   self)

TODO.

Definition at line 1359 of file carmaWrap.py.

◆ reset()

int carmaWrap.obj_int.reset (   self)

TODO.

Definition at line 1363 of file carmaWrap.py.

◆ rot()

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

TODO.

Definition at line 1367 of file carmaWrap.py.

◆ scale()

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

TODO.

Definition at line 1371 of file carmaWrap.py.

◆ sum()

int carmaWrap.obj_int.sum (   self)

TODO.

Definition at line 1375 of file carmaWrap.py.

◆ swap()

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

TODO.

Definition at line 1379 of file carmaWrap.py.

◆ swap_ptr()

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

TODO.

Definition at line 1383 of file carmaWrap.py.

◆ symm()

obj_int carmaWrap.obj_int.symm (   self,
obj_int  matB,
int   alpha = 1,
obj_int   matC = None,
int   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 1387 of file carmaWrap.py.

◆ symv()

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

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

Definition at line 1391 of file carmaWrap.py.

◆ syrk()

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

this method performs the symmetric rank- k update

Definition at line 1395 of file carmaWrap.py.

◆ syrkx()

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

this method performs the symmetric rank- k update

Definition at line 1399 of file carmaWrap.py.

◆ to_cupy()

object carmaWrap.obj_int.to_cupy (   self)

TODO.

Definition at line 1403 of file carmaWrap.py.

◆ transpose()

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

TODO.

Definition at line 1407 of file carmaWrap.py.

◆ wait_all_streams()

int carmaWrap.obj_int.wait_all_streams (   self)

TODO.

Definition at line 1411 of file carmaWrap.py.

◆ wait_stream()

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

TODO.

Definition at line 1415 of file carmaWrap.py.

Property Documentation

◆ context

carmaWrap.obj_int.context = property
static

TODO.

   @n type of :  context

Definition at line 1422 of file carmaWrap.py.

◆ d_ptr

carmaWrap.obj_int.d_ptr = property
static

TODO.

   @n type of :  int

Definition at line 1431 of file carmaWrap.py.

◆ device

carmaWrap.obj_int.device = property
static

TODO.

   @n type of :  int

Definition at line 1440 of file carmaWrap.py.

◆ nb_streams

carmaWrap.obj_int.nb_streams = property
static

TODO.

   @n type of :  int

Definition at line 1458 of file carmaWrap.py.

◆ nbElem

carmaWrap.obj_int.nbElem = property
static

TODO.

   @n type of :  int

Definition at line 1449 of file carmaWrap.py.

◆ o_data

carmaWrap.obj_int.o_data = property
static

TODO.

   @n type of :  int

Definition at line 1467 of file carmaWrap.py.

◆ shape

carmaWrap.obj_int.shape = property
static

TODO.

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

Definition at line 1476 of file carmaWrap.py.


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