https://github.com/skailasa/pyrustmpi
Minimal example of Python + Rust + MPI project.
https://github.com/skailasa/pyrustmpi
mpi python rust
Last synced: 5 months ago
JSON representation
Minimal example of Python + Rust + MPI project.
- Host: GitHub
- URL: https://github.com/skailasa/pyrustmpi
- Owner: skailasa
- License: mit
- Created: 2022-03-19T17:27:49.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-13T07:52:27.000Z (over 3 years ago)
- Last Synced: 2023-03-07T06:46:31.863Z (over 2 years ago)
- Topics: mpi, python, rust
- Language: Python
- Homepage:
- Size: 5.17 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://anaconda.org/skailasa/pyrustmpi)
[](https://anaconda.org/skailasa/pyrustmpi)
# PyRustMPI
Minimal example of Python + Rust + MPI project for Mac and Linux projects.
## Build
Using Conda Build to generate a Conda package
```bash
conda build conda.recipe
```Alternatively, build from within a virtual environment manually.
```bash
# Create a virtulenv called 'build'
conda env create -f environment.yaml && conda activate build# Build just Rust package with Cargo
cargo build# Build combined Rust and Python package with Maturin
maturin build
```## Install
Install from Anaconda Cloud into a Conda environment.
```bash
conda install -c skailasa pyrustmpi
```Install mpi4py dependency separately, to ensure that correct pointers are
created to shared libraries when installing into a virtual environment```
env MPICC=/path/to/mpicc python -m pip install mpi4py
```**Installation requires that your channel list contains `conda-forge`.**