Include mpi in CMakeLists

This commit is contained in:
2023-12-11 09:06:05 +01:00
parent 234342f2de
commit 40ae4ad7f9
3 changed files with 29 additions and 10 deletions

View File

@@ -8,6 +8,16 @@ Bayesian Network Classifier with libtorch from scratch
Before compiling BayesNet.
### MPI
In Linux just install openmpi & openmpi-devel packages.
In Mac OS X, install mpich with brew and if cmake doesn't find it, edit mpicxx wrapper to remove the ",-commons,use_dylibs" from final_ldflags
```bash
vi /opt/homebrew/bin/mpicx
```
### boost library
[Getting Started](<https://www.boost.org/doc/libs/1_83_0/more/getting_started/index.html>)