![]() |
COMPASS
5.4.4
End-to-end AO simulation tool using GPU acceleration
|
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... | |
Definition at line 1223 of file carmaWrap.py.
None carmaWrap.obj_int.__init__ | ( | self, | |
context | context, | ||
numpy.ndarray[numpy.int32] | h_data | ||
) |
TODO.
TODO
Definition at line 1230 of file carmaWrap.py.
str carmaWrap.obj_int.__repr__ | ( | self | ) |
Definition at line 1233 of file carmaWrap.py.
int carmaWrap.obj_int.add_stream | ( | self | ) |
TODO.
TODO
Definition at line 1240 of file carmaWrap.py.
int carmaWrap.obj_int.add_stream | ( | self, | |
int | np | ||
) |
int carmaWrap.obj_int.aimax | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 1246 of file carmaWrap.py.
int carmaWrap.obj_int.aimin | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 1250 of file carmaWrap.py.
int carmaWrap.obj_int.asum | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 1254 of file carmaWrap.py.
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.
None carmaWrap.obj_int.clip | ( | self, | |
int | data_min, | ||
int | data_max | ||
) |
TODO.
Definition at line 1262 of file carmaWrap.py.
None carmaWrap.obj_int.copy | ( | self, | |
obj_int | arg0, | ||
int | arg1, | ||
int | arg2 | ||
) |
TODO.
Definition at line 1266 of file carmaWrap.py.
None carmaWrap.obj_int.copy_from | ( | self, | |
obj_int | data, | ||
int | nb_elem = -1 |
||
) |
TODO.
Definition at line 1270 of file carmaWrap.py.
None carmaWrap.obj_int.copy_into | ( | self, | |
obj_int | dest, | ||
int | nb_elem = -1 |
||
) |
TODO.
Definition at line 1274 of file carmaWrap.py.
int carmaWrap.obj_int.del_stream | ( | self | ) |
TODO.
TODO
Definition at line 1281 of file carmaWrap.py.
int carmaWrap.obj_int.del_stream | ( | self, | |
int | np | ||
) |
int carmaWrap.obj_int.destroy_prng | ( | self | ) |
Definition at line 1284 of file carmaWrap.py.
int carmaWrap.obj_int.destroy_prng_host | ( | self | ) |
Definition at line 1285 of file carmaWrap.py.
None carmaWrap.obj_int.device2host | ( | self, | |
numpy.ndarray[numpy.int32] | data | ||
) |
TODO.
Definition at line 1289 of file carmaWrap.py.
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.
int carmaWrap.obj_int.dot | ( | self, | |
obj_int | source, | ||
int | incx = 1 , |
||
int | incy = 1 |
||
) |
TODO.
Definition at line 1297 of file carmaWrap.py.
None carmaWrap.obj_int.fft | ( | self, | |
obj_int | dest = None , |
||
int | direction = 1 |
||
) |
Definition at line 1298 of file carmaWrap.py.
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.
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.
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.
this method performs the symmetric rank 1 operation A = alpha * x * y T + A
Definition at line 1314 of file carmaWrap.py.
None carmaWrap.obj_int.host2device | ( | self, | |
numpy.ndarray[numpy.int32] | data | ||
) |
TODO.
Definition at line 1318 of file carmaWrap.py.
int carmaWrap.obj_int.init_prng | ( | self | ) |
int carmaWrap.obj_int.init_prng | ( | self, | |
int | arg0 | ||
) |
int carmaWrap.obj_int.init_prng_host | ( | self, | |
int | arg0 | ||
) |
Definition at line 1323 of file carmaWrap.py.
None carmaWrap.obj_int.init_reduceCub | ( | self | ) |
TODO.
Definition at line 1327 of file carmaWrap.py.
bool carmaWrap.obj_int.is_rng_init | ( | self | ) |
Definition at line 1328 of file carmaWrap.py.
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.
int carmaWrap.obj_int.nrm2 | ( | self, | |
int | incx = 1 |
||
) |
TODO.
Definition at line 1336 of file carmaWrap.py.
int carmaWrap.obj_int.prng | ( | self, | |
int | arg0, | ||
str | arg1, | ||
float | arg2 | ||
) |
int carmaWrap.obj_int.prng | ( | self, | |
int | arg0, | ||
str | arg1, | ||
float | arg2, | ||
float | arg3 | ||
) |
int carmaWrap.obj_int.prng | ( | self, | |
str | arg0 | ||
) |
int carmaWrap.obj_int.prng | ( | self, | |
str | arg0, | ||
float | arg1 | ||
) |
int carmaWrap.obj_int.prng | ( | self, | |
str | arg0, | ||
float | arg1, | ||
float | arg2 | ||
) |
int carmaWrap.obj_int.prng_host | ( | self, | |
str | arg0 | ||
) |
int carmaWrap.obj_int.prng_host | ( | self, | |
str | arg0, | ||
int | arg1 | ||
) |
int carmaWrap.obj_int.prng_host | ( | self, | |
str | arg0, | ||
int | arg1, | ||
int | arg2 | ||
) |
int carmaWrap.obj_int.prng_montagn | ( | self, | |
float | arg0 | ||
) |
Definition at line 1353 of file carmaWrap.py.
None carmaWrap.obj_int.random | ( | self, | |
int | seed = 1234 , |
||
str | j = 'U' |
||
) |
Definition at line 1354 of file carmaWrap.py.
None carmaWrap.obj_int.random_host | ( | self, | |
int | seed = 1234 , |
||
str | j = 'U' |
||
) |
Definition at line 1355 of file carmaWrap.py.
None carmaWrap.obj_int.reduceCub | ( | self | ) |
TODO.
Definition at line 1359 of file carmaWrap.py.
int carmaWrap.obj_int.reset | ( | self | ) |
TODO.
Definition at line 1363 of file carmaWrap.py.
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.
None carmaWrap.obj_int.scale | ( | self, | |
int | scale, | ||
int | incx = 1 |
||
) |
TODO.
Definition at line 1371 of file carmaWrap.py.
int carmaWrap.obj_int.sum | ( | self | ) |
TODO.
Definition at line 1375 of file carmaWrap.py.
None carmaWrap.obj_int.swap | ( | self, | |
obj_int | source, | ||
int | incx = 1 , |
||
int | incy = 1 |
||
) |
TODO.
Definition at line 1379 of file carmaWrap.py.
None carmaWrap.obj_int.swap_ptr | ( | self, | |
obj_int | ptr | ||
) |
TODO.
Definition at line 1383 of file carmaWrap.py.
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.
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.
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.
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.
object carmaWrap.obj_int.to_cupy | ( | self | ) |
TODO.
Definition at line 1403 of file carmaWrap.py.
int carmaWrap.obj_int.transpose | ( | self, | |
obj_int | source | ||
) |
TODO.
Definition at line 1407 of file carmaWrap.py.
int carmaWrap.obj_int.wait_all_streams | ( | self | ) |
TODO.
Definition at line 1411 of file carmaWrap.py.
int carmaWrap.obj_int.wait_stream | ( | self, | |
int | steam | ||
) |
TODO.
Definition at line 1415 of file carmaWrap.py.
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |