![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
Public Member Functions | |
None | __init__ (self, context context, numpy.ndarray[numpy.float64] h_data) |
TODO. More... | |
None | __init__ (self, context context, obj_double 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_double 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_double arg0, int arg1, int arg2) |
TODO. More... | |
None | copy_from (self, obj_double data, int nb_elem=-1) |
TODO. More... | |
None | copy_into (self, obj_double 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.float64] data) |
TODO. More... | |
obj_double | dgmm (self, obj_double vectX, float alpha=1, str side='r', obj_double 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_double source, int incx=1, int incy=1) |
TODO. More... | |
None | fft (self, obj_double dest=None, int direction=1) |
obj_double | geam (self, obj_double matB, str opA='N', str opB='N', float alpha=1, obj_double matC=None, float beta=0) |
this method performs the symmetric rank- k update More... | |
obj_double | gemm (self, obj_double matB, str op_a='N', str op_b='N', float alpha=1, obj_double 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_double | gemv (self, obj_double vectx, float alpha=1, str op='N', obj_double vecty=None, float beta=0) |
this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty More... | |
obj_double | ger (self, obj_double vecty, obj_double 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.float64] 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_double | magma_gemv (self, obj_double vectx, float alpha=1, str op='N', obj_double 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_double 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_double source, int incx=1, int incy=1) |
TODO. More... | |
None | swap_ptr (self, obj_double ptr) |
TODO. More... | |
obj_double | symm (self, obj_double matB, float alpha=1, obj_double 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_double | symv (self, obj_double vectx, float alpha=1, str uplo='l', obj_double vecty=None, float beta=0) |
this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty More... | |
obj_double | syrk (self, str fill='U', str op='N', float alpha=1, obj_double matC=None, float beta=0) |
this method performs the symmetric rank- k update More... | |
obj_double | syrkx (self, obj_double matB, str fill='U', str op='N', float alpha=1, obj_double matC=None, float beta=0) |
this method performs the symmetric rank- k update More... | |
object | to_cupy (self) |
TODO. More... | |
int | transpose (self, obj_double 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... | |
Definition at line 409 of file carmaWrap.py.
None carmaWrap.obj_double.__init__ | ( | self, | |
context | context, | ||
numpy.ndarray[numpy.float64] | h_data | ||
) |
None carmaWrap.obj_double.__init__ | ( | self, | |
context | context, | ||
obj_double | d_data | ||
) |
str carmaWrap.obj_double.__repr__ | ( | self | ) |
Definition at line 419 of file carmaWrap.py.
int carmaWrap.obj_double.add_stream | ( | self | ) |
int carmaWrap.obj_double.add_stream | ( | self, | |
int | np | ||
) |
int carmaWrap.obj_double.aimax | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 432 of file carmaWrap.py.
int carmaWrap.obj_double.aimin | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 436 of file carmaWrap.py.
float carmaWrap.obj_double.asum | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 440 of file carmaWrap.py.
None carmaWrap.obj_double.axpy | ( | self, | |
float | alpha, | ||
obj_double | source, | ||
int | incx = 1 , |
||
int | incy = 1 , |
||
int | offset = 0 |
||
) |
TODO.
Definition at line 444 of file carmaWrap.py.
None carmaWrap.obj_double.clip | ( | self, | |
float | data_min, | ||
float | data_max | ||
) |
TODO.
Definition at line 448 of file carmaWrap.py.
None carmaWrap.obj_double.copy | ( | self, | |
obj_double | arg0, | ||
int | arg1, | ||
int | arg2 | ||
) |
TODO.
Definition at line 452 of file carmaWrap.py.
None carmaWrap.obj_double.copy_from | ( | self, | |
obj_double | data, | ||
int | nb_elem = -1 |
||
) |
TODO.
Definition at line 456 of file carmaWrap.py.
None carmaWrap.obj_double.copy_into | ( | self, | |
obj_double | dest, | ||
int | nb_elem = -1 |
||
) |
TODO.
Definition at line 460 of file carmaWrap.py.
int carmaWrap.obj_double.del_stream | ( | self | ) |
int carmaWrap.obj_double.del_stream | ( | self, | |
int | np | ||
) |
int carmaWrap.obj_double.destroy_prng | ( | self | ) |
Definition at line 470 of file carmaWrap.py.
int carmaWrap.obj_double.destroy_prng_host | ( | self | ) |
Definition at line 471 of file carmaWrap.py.
None carmaWrap.obj_double.device2host | ( | self, | |
numpy.ndarray[numpy.float64] | data | ||
) |
TODO.
Definition at line 475 of file carmaWrap.py.
obj_double carmaWrap.obj_double.dgmm | ( | self, | |
obj_double | vectX, | ||
float | alpha = 1 , |
||
str | side = 'r' , |
||
obj_double | matC = None , |
||
int | incx = 1 |
||
) |
this method performs one of the matrix‐marix operations matC = diag(vectX)*matA if side='l'
Definition at line 479 of file carmaWrap.py.
float carmaWrap.obj_double.dot | ( | self, | |
obj_double | source, | ||
int | incx = 1 , |
||
int | incy = 1 |
||
) |
TODO.
Definition at line 483 of file carmaWrap.py.
None carmaWrap.obj_double.fft | ( | self, | |
obj_double | dest = None , |
||
int | direction = 1 |
||
) |
Definition at line 484 of file carmaWrap.py.
obj_double carmaWrap.obj_double.geam | ( | self, | |
obj_double | matB, | ||
str | opA = 'N' , |
||
str | opB = 'N' , |
||
float | alpha = 1 , |
||
obj_double | matC = None , |
||
float | beta = 0 |
||
) |
this method performs the symmetric rank- k update
Definition at line 488 of file carmaWrap.py.
obj_double carmaWrap.obj_double.gemm | ( | self, | |
obj_double | matB, | ||
str | op_a = 'N' , |
||
str | op_b = 'N' , |
||
float | alpha = 1 , |
||
obj_double | 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 492 of file carmaWrap.py.
obj_double carmaWrap.obj_double.gemv | ( | self, | |
obj_double | vectx, | ||
float | alpha = 1 , |
||
str | op = 'N' , |
||
obj_double | vecty = None , |
||
float | beta = 0 |
||
) |
this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty
Definition at line 496 of file carmaWrap.py.
obj_double carmaWrap.obj_double.ger | ( | self, | |
obj_double | vecty, | ||
obj_double | mat = None , |
||
float | alpha = 1 |
||
) |
this method performs the symmetric rank 1 operation A = alpha * x * y T + A
Definition at line 500 of file carmaWrap.py.
None carmaWrap.obj_double.host2device | ( | self, | |
numpy.ndarray[numpy.float64] | data | ||
) |
TODO.
Definition at line 504 of file carmaWrap.py.
int carmaWrap.obj_double.init_prng | ( | self | ) |
int carmaWrap.obj_double.init_prng | ( | self, | |
int | arg0 | ||
) |
int carmaWrap.obj_double.init_prng_host | ( | self, | |
int | arg0 | ||
) |
Definition at line 509 of file carmaWrap.py.
None carmaWrap.obj_double.init_reduceCub | ( | self | ) |
TODO.
Definition at line 513 of file carmaWrap.py.
bool carmaWrap.obj_double.is_rng_init | ( | self | ) |
Definition at line 514 of file carmaWrap.py.
obj_double carmaWrap.obj_double.magma_gemv | ( | self, | |
obj_double | vectx, | ||
float | alpha = 1 , |
||
str | op = 'N' , |
||
obj_double | vecty = None , |
||
float | beta = 0 |
||
) |
this method performs one of the matrix‐vector operations vecty = alpha * op(mat) * vectx + beta * vecty
Definition at line 518 of file carmaWrap.py.
float carmaWrap.obj_double.nrm2 | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 522 of file carmaWrap.py.
int carmaWrap.obj_double.prng | ( | self, | |
float | arg0, | ||
str | arg1, | ||
float | arg2 | ||
) |
int carmaWrap.obj_double.prng | ( | self, | |
float | arg0, | ||
str | arg1, | ||
float | arg2, | ||
float | arg3 | ||
) |
int carmaWrap.obj_double.prng | ( | self, | |
str | arg0 | ||
) |
int carmaWrap.obj_double.prng | ( | self, | |
str | arg0, | ||
float | arg1 | ||
) |
int carmaWrap.obj_double.prng | ( | self, | |
str | arg0, | ||
float | arg1, | ||
float | arg2 | ||
) |
int carmaWrap.obj_double.prng_host | ( | self, | |
str | arg0 | ||
) |
int carmaWrap.obj_double.prng_host | ( | self, | |
str | arg0, | ||
float | arg1 | ||
) |
int carmaWrap.obj_double.prng_host | ( | self, | |
str | arg0, | ||
float | arg1, | ||
float | arg2 | ||
) |
int carmaWrap.obj_double.prng_montagn | ( | self, | |
float | arg0 | ||
) |
Definition at line 539 of file carmaWrap.py.
None carmaWrap.obj_double.random | ( | self, | |
int | seed = 1234 , |
||
str | j = 'U' |
||
) |
Definition at line 540 of file carmaWrap.py.
None carmaWrap.obj_double.random_host | ( | self, | |
int | seed = 1234 , |
||
str | j = 'U' |
||
) |
Definition at line 541 of file carmaWrap.py.
None carmaWrap.obj_double.reduceCub | ( | self | ) |
TODO.
Definition at line 545 of file carmaWrap.py.
int carmaWrap.obj_double.reset | ( | self | ) |
TODO.
Definition at line 549 of file carmaWrap.py.
None carmaWrap.obj_double.rot | ( | self, | |
obj_double | arg0, | ||
int | arg1, | ||
int | arg2, | ||
float | arg3, | ||
float | arg4 | ||
) |
TODO.
Definition at line 553 of file carmaWrap.py.
None carmaWrap.obj_double.scale | ( | self, | |
float | scale, | ||
int | incx = 1 |
||
) |
TODO.
Definition at line 557 of file carmaWrap.py.
float carmaWrap.obj_double.sum | ( | self | ) |
TODO.
Definition at line 561 of file carmaWrap.py.
None carmaWrap.obj_double.swap | ( | self, | |
obj_double | source, | ||
int | incx = 1 , |
||
int | incy = 1 |
||
) |
TODO.
Definition at line 565 of file carmaWrap.py.
None carmaWrap.obj_double.swap_ptr | ( | self, | |
obj_double | ptr | ||
) |
TODO.
Definition at line 569 of file carmaWrap.py.
obj_double carmaWrap.obj_double.symm | ( | self, | |
obj_double | matB, | ||
float | alpha = 1 , |
||
obj_double | 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 573 of file carmaWrap.py.
obj_double carmaWrap.obj_double.symv | ( | self, | |
obj_double | vectx, | ||
float | alpha = 1 , |
||
str | uplo = 'l' , |
||
obj_double | vecty = None , |
||
float | beta = 0 |
||
) |
this method performs one of the matrix‐vector operations vecty = alpha * mat * vectx + beta * vecty
Definition at line 577 of file carmaWrap.py.
obj_double carmaWrap.obj_double.syrk | ( | self, | |
str | fill = 'U' , |
||
str | op = 'N' , |
||
float | alpha = 1 , |
||
obj_double | matC = None , |
||
float | beta = 0 |
||
) |
this method performs the symmetric rank- k update
Definition at line 581 of file carmaWrap.py.
obj_double carmaWrap.obj_double.syrkx | ( | self, | |
obj_double | matB, | ||
str | fill = 'U' , |
||
str | op = 'N' , |
||
float | alpha = 1 , |
||
obj_double | matC = None , |
||
float | beta = 0 |
||
) |
this method performs the symmetric rank- k update
Definition at line 585 of file carmaWrap.py.
object carmaWrap.obj_double.to_cupy | ( | self | ) |
TODO.
Definition at line 589 of file carmaWrap.py.
int carmaWrap.obj_double.transpose | ( | self, | |
obj_double | source | ||
) |
TODO.
Definition at line 593 of file carmaWrap.py.
int carmaWrap.obj_double.wait_all_streams | ( | self | ) |
TODO.
Definition at line 597 of file carmaWrap.py.
int carmaWrap.obj_double.wait_stream | ( | self, | |
int | steam | ||
) |
TODO.
Definition at line 601 of file carmaWrap.py.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |