Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CodeVault
training-material
parallel-programming
MPI
Commits
6f30a5fe
Commit
6f30a5fe
authored
Jul 04, 2018
by
Jussi Enkovaara
Browse files
Add few notes about Python implementation and building the Cython
kernels
parent
138520d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
heat-equation/python/README.md
0 → 100644
View file @
6f30a5fe
# Python implementation
The Python implementation utilizes NumPy and mpi4py for computation and
communication, as well as matplotlib for outputting images. The main program
is implemented in
[
heat.py
](
heat.py
)
, and the whole program can be executed as
mpirun -np xxx python heat.py
## Using Cython kernel
By default, the code uses pure NumPy for evaluating the time evolution
step. In addition, a Cython version for the main computational kernels
is provided in
[
evolve.pyx
](
evolve.pyx
)
. The Cython kernels can be built
into Python extension in current directory with
python setup.py build_ext --inplace
After building the Cython kernels main program can be executed as previously.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment