Skip to content

allow disabling of MPI

Vicentini Filippo requested to merge pv/mpi into master

Created by: PhilipVinc

In some clusters/mpi (eg, Epfl scats) implementation calling MPI.Init() twice or when not running under MPI will lead to a crash making it Impossible to import netket unless mpi4py/jax are uninstalled, which is not nice.

This PR adds the env variable NETKET_MPI (defaults to 1/true) which if set to =0 will disable MPI within netket.

Merge request reports