![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
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... | |
Definition at line 816 of file carmaWrap.py.
| None carmaWrap.obj_float.__init__ | ( | self, | |
| context | context, | ||
| numpy.ndarray[numpy.float32] | h_data | ||
| ) |
| str carmaWrap.obj_float.__repr__ | ( | self | ) |
Definition at line 826 of file carmaWrap.py.
| int carmaWrap.obj_float.add_stream | ( | self | ) |
| int carmaWrap.obj_float.add_stream | ( | self, | |
| int | np | ||
| ) |
| int carmaWrap.obj_float.aimax | ( | self, | |
| int | incx = 1 |
||
| ) |
TODO.
Definition at line 839 of file carmaWrap.py.
| int carmaWrap.obj_float.aimin | ( | self, | |
| int | incx = 1 |
||
| ) |
TODO.
Definition at line 843 of file carmaWrap.py.
| float carmaWrap.obj_float.asum | ( | self, | |
| int | incx = 1 |
||
| ) |
TODO.
Definition at line 847 of file carmaWrap.py.
| 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.
| None carmaWrap.obj_float.clip | ( | self, | |
| float | data_min, | ||
| float | data_max | ||
| ) |
TODO.
Definition at line 855 of file carmaWrap.py.
| None carmaWrap.obj_float.copy | ( | self, | |
| obj_float | arg0, | ||
| int | arg1, | ||
| int | arg2 | ||
| ) |
TODO.
Definition at line 859 of file carmaWrap.py.
| None carmaWrap.obj_float.copy_from | ( | self, | |
| obj_float | data, | ||
| int | nb_elem = -1 |
||
| ) |
TODO.
Definition at line 863 of file carmaWrap.py.
| None carmaWrap.obj_float.copy_into | ( | self, | |
| obj_float | dest, | ||
| int | nb_elem = -1 |
||
| ) |
TODO.
Definition at line 867 of file carmaWrap.py.
| int carmaWrap.obj_float.del_stream | ( | self | ) |
| int carmaWrap.obj_float.del_stream | ( | self, | |
| int | np | ||
| ) |
| int carmaWrap.obj_float.destroy_prng | ( | self | ) |
Definition at line 877 of file carmaWrap.py.
| int carmaWrap.obj_float.destroy_prng_host | ( | self | ) |
Definition at line 878 of file carmaWrap.py.
| None carmaWrap.obj_float.device2host | ( | self, | |
| numpy.ndarray[numpy.float32] | data | ||
| ) |
TODO.
Definition at line 882 of file carmaWrap.py.
| 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.
| float carmaWrap.obj_float.dot | ( | self, | |
| obj_float | source, | ||
| int | incx = 1, |
||
| int | incy = 1 |
||
| ) |
TODO.
Definition at line 890 of file carmaWrap.py.
| None carmaWrap.obj_float.fft | ( | self, | |
| obj_float | dest = None, |
||
| int | direction = 1 |
||
| ) |
Definition at line 891 of file carmaWrap.py.
| 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.
| 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.
| 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.
this method performs the symmetric rank 1 operation A = alpha * x * y T + A
Definition at line 907 of file carmaWrap.py.
| None carmaWrap.obj_float.host2device | ( | self, | |
| numpy.ndarray[numpy.float32] | data | ||
| ) |
TODO.
Definition at line 911 of file carmaWrap.py.
| int carmaWrap.obj_float.init_prng | ( | self | ) |
| int carmaWrap.obj_float.init_prng | ( | self, | |
| int | arg0 | ||
| ) |
| int carmaWrap.obj_float.init_prng_host | ( | self, | |
| int | arg0 | ||
| ) |
Definition at line 916 of file carmaWrap.py.
| None carmaWrap.obj_float.init_reduceCub | ( | self | ) |
TODO.
Definition at line 920 of file carmaWrap.py.
| bool carmaWrap.obj_float.is_rng_init | ( | self | ) |
Definition at line 921 of file carmaWrap.py.
| 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.
| float carmaWrap.obj_float.nrm2 | ( | self, | |
| int | incx = 1 |
||
| ) |
TODO.
Definition at line 929 of file carmaWrap.py.
| int carmaWrap.obj_float.prng | ( | self, | |
| float | arg0, | ||
| str | arg1, | ||
| float | arg2 | ||
| ) |
| int carmaWrap.obj_float.prng | ( | self, | |
| float | arg0, | ||
| str | arg1, | ||
| float | arg2, | ||
| float | arg3 | ||
| ) |
| int carmaWrap.obj_float.prng | ( | self, | |
| str | arg0 | ||
| ) |
| int carmaWrap.obj_float.prng | ( | self, | |
| str | arg0, | ||
| float | arg1 | ||
| ) |
| int carmaWrap.obj_float.prng | ( | self, | |
| str | arg0, | ||
| float | arg1, | ||
| float | arg2 | ||
| ) |
| int carmaWrap.obj_float.prng_host | ( | self, | |
| str | arg0 | ||
| ) |
| int carmaWrap.obj_float.prng_host | ( | self, | |
| str | arg0, | ||
| float | arg1 | ||
| ) |
| int carmaWrap.obj_float.prng_host | ( | self, | |
| str | arg0, | ||
| float | arg1, | ||
| float | arg2 | ||
| ) |
| int carmaWrap.obj_float.prng_montagn | ( | self, | |
| float | arg0 | ||
| ) |
Definition at line 946 of file carmaWrap.py.
| None carmaWrap.obj_float.random | ( | self, | |
| int | seed = 1234, |
||
| str | j = 'U' |
||
| ) |
Definition at line 947 of file carmaWrap.py.
| None carmaWrap.obj_float.random_host | ( | self, | |
| int | seed = 1234, |
||
| str | j = 'U' |
||
| ) |
Definition at line 948 of file carmaWrap.py.
| None carmaWrap.obj_float.reduceCub | ( | self | ) |
TODO.
Definition at line 952 of file carmaWrap.py.
| int carmaWrap.obj_float.reset | ( | self | ) |
TODO.
Definition at line 956 of file carmaWrap.py.
| 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.
| None carmaWrap.obj_float.scale | ( | self, | |
| float | scale, | ||
| int | incx = 1 |
||
| ) |
TODO.
Definition at line 964 of file carmaWrap.py.
| float carmaWrap.obj_float.sum | ( | self | ) |
TODO.
Definition at line 968 of file carmaWrap.py.
| None carmaWrap.obj_float.swap | ( | self, | |
| obj_float | source, | ||
| int | incx = 1, |
||
| int | incy = 1 |
||
| ) |
TODO.
Definition at line 972 of file carmaWrap.py.
| None carmaWrap.obj_float.swap_ptr | ( | self, | |
| obj_float | ptr | ||
| ) |
TODO.
Definition at line 976 of file carmaWrap.py.
| 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.
| 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.
| 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.
| 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.
| object carmaWrap.obj_float.to_cupy | ( | self | ) |
TODO.
Definition at line 996 of file carmaWrap.py.
| int carmaWrap.obj_float.transpose | ( | self, | |
| obj_float | source | ||
| ) |
TODO.
Definition at line 1000 of file carmaWrap.py.
| int carmaWrap.obj_float.wait_all_streams | ( | self | ) |
TODO.
Definition at line 1004 of file carmaWrap.py.
| int carmaWrap.obj_float.wait_stream | ( | self, | |
| int | steam | ||
| ) |
TODO.
Definition at line 1008 of file carmaWrap.py.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |