You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pdbridge_solve, log-determinant computation pdbridge_logdet, and deallocation pdbridge_free.
9
+
pdbridge.c - It contains C functions for the APIs.
10
+
pdbridge.py - Utility Python functions.
11
+
12
+
13
+
To compile the code, use CMake option -Denable_python=ON (the default) and -DBUILD_SHARED_LIBS=ON,
14
+
then type 'make python'. This will create a shared library called superlu_dist_python. In addition,
15
+
one need to install mpi4py>=4.0.0, e.g., using:
16
+
MPICC=mpicc pip install mpi4py==4.0.0
17
+
18
+
There is one example in the directory.
19
+
20
+
1. pddrive.py:
21
+
This example will generate a random SPD matrix, perform the factorization and computes the log-determinant (and compare with log-determinant from numpy.linalg.slogdet)
22
+
To run the code, type:
23
+
python pddrive.py -c 2 -r 1
24
+
(The above use 2 MPIs.)
25
+
Note that if a 64-bit integer interface is needed (assuming -DXSDK_INDEX_SIZE=64 has been used to compile the code), set INT64 = 1 in pddrive.py
0 commit comments