Python wrapper for dynamically loaded ScaLAPACK and BLACS libraries
Project description
Dynamics ScaLAPACK wrapper for Python
Python wrapper for dynamically loaded ScaLAPACK and BLACS libraries
from scalapack4py import ScaLAPACK4py, parprint, ordprint
from ctypes import cast, py_object, CDLL, RTLD_GLOBAL
scalapack_lib = CDLL('libscalapack-openmpi.so.2.0', mode=RTLD_GLOBAL)
sl = ScaLAPACK4py(scalapack_lib)
...
descr = sl.wrap_blacs_desc(descr)
locshape = (descr.locrow, descr.loccol)
data = np.ctypeslib.as_array(data, shape=locshape)
sl.scatter(data_src, descr, data)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scalapack4py-0.0.3.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for scalapack4py-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3b620d5f87b3ffa6cad2b455a6011fe624248988fbe15e834cd8fe08937ce06 |
|
MD5 | 4a7cb4348f240b3e5fa6af01fa681e67 |
|
BLAKE2b-256 | ad6695e819957ad839e58b2c9f87c38da91fcec9c1ddcd920eff6f10efcb4387 |