Skip to main content

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.7.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

scalapack4py-0.0.7-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file scalapack4py-0.0.7.tar.gz.

File metadata

  • Download URL: scalapack4py-0.0.7.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for scalapack4py-0.0.7.tar.gz
Algorithm Hash digest
SHA256 41487f53e11c75ae8c7def8c0428759a58fe398fe4f191e2d2a788926abf6eff
MD5 74e6c72f0d51e2a505fef34ff55d29b3
BLAKE2b-256 3c34988861d498877971ed3c10893084ade3d34f3ab85b278eb69ce689c3f120

See more details on using hashes here.

File details

Details for the file scalapack4py-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for scalapack4py-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6fe665cd9547902c746ae0267b215b62582542cc85ddd6ebff459552c7d5fd3c
MD5 a40304917d5b27313ce5e9767c4b10f1
BLAKE2b-256 5365ba35e48ef591bcb096b09910ba2dd103a467442ac74a2b5ad3954604d45a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page