Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyangzhuan authored Nov 10, 2024
1 parent e32478d commit dd35a46
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions PYTHON/README
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ The directory contains the following files:

To compile the code, use CMake option -Denable_python=ON (the default) and -DBUILD_SHARED_LIBS=ON,
then type 'make python'. This will create a shared library called superlu_dist_python. In addition,
one need to install mpi4py>=4.0.0, e.g., using:
one needs to install mpi4py>=4.0.0, e.g., using:
MPICC=mpicc pip install mpi4py==4.0.0

There is one example in the directory.

1. pddrive.py:
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)
This example will generate a random SPD matrix, perform the factorization and computes the log-determinant (and compare it with log-determinant from numpy.linalg.slogdet)
To run the code, type:
python pddrive.py -c 2 -r 1
(The above use 2 MPIs.)
Expand Down

0 comments on commit dd35a46

Please sign in to comment.