5 releases
0.1.4 | May 3, 2024 |
---|---|
0.1.3 | Oct 21, 2023 |
0.1.2 | Aug 5, 2022 |
0.1.1 | Feb 24, 2018 |
0.1.0 | Jun 5, 2017 |
#338 in Build Utils
3,222 downloads per month
Used in 20 crates
(3 directly)
13KB
310 lines
Probe an environment for an installed MPI library
Probing is done in several steps on Unix:
- Try to find an MPI compiler wrapper either from the environment variable
MPICC
or under the namempicc
then run the compiler wrapper with the command line argument-show
and interpret the resulting output asgcc
compatible command line arguments. - Query the
pkg-config
database for an installation ofmpich
. - Query the
pkg-config
database for an installation ofopenmpi
.
On Windows, only MS-MPI is looked for. The MSMPI_INC and MSMPI_LIB32/64 environment variables are expected.
The result of the first successful step is returned. If no step is successful, a list of errors encountered while executing the steps is returned.
Dependencies
~60KB