@@ -488,7 +488,7 @@ and apply the appropriate conditionals in your build:
488
488
489
489
490
490
Preferring a provider (usually nompi)
491
- """""""""""""""""""""""""""""""""""""
491
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
492
492
493
493
Up to here, mpi providers have no explicit preference. When choosing an MPI provider, the mutual exclusivity of
494
494
the ``mpi `` metapackage allows picking between mpi providers by installing an mpi provider, e.g.
@@ -580,7 +580,7 @@ Remove the ``if mpi...`` condition if all variants should create a strict runtim
580
580
chosen at build time (i.e. if the nompi build cannot be run against the mpich build).
581
581
582
582
Complete example
583
- """"""""""""""""
583
+ ^^^^^^^^^^^^^^^^
584
584
585
585
Combining all of the above, here is a complete recipe, with:
586
586
@@ -660,7 +660,7 @@ mpi-metapackage exclusivity allows ``mpi_*`` to resolve the same as ``mpi_{{ mpi
660
660
if ``{{ mpi }} `` is also a direct dependency, though it's probably nicer to be explicit.
661
661
662
662
Just mpi example
663
- """"""""""""""""
663
+ ^^^^^^^^^^^^^^^^
664
664
665
665
Without a preferred ``nompi `` variant, recipes that require mpi are much simpler. This is all that is needed:
666
666
@@ -680,6 +680,13 @@ Without a preferred ``nompi`` variant, recipes that require mpi are much simpler
680
680
run :
681
681
- {{ mpi }}
682
682
683
+ MPI Compiler Packages
684
+ ^^^^^^^^^^^^^^^^^^^^^
685
+
686
+ Do not use the ``[openmpi,mpich]-[mpicc,mpicxx,mpifort] `` metapackages in the ``requirements/build `` section
687
+ of a recipe; the MPI compiler wrappers are included in the main ``openmpi ``/``mpich `` packages.
688
+ As shown above, just add ``openmpi ``/``mpich `` to the ``requirements/host `` section and use compiler directives for the
689
+ corresponding compilers in ``requirements/build `` as normal.
683
690
684
691
685
692
OpenMP
0 commit comments