Ignore:
Timestamp:
Nov 12, 2015, 3:30:02 AM (3 years ago)
Author:
dstrubbe@…
Message:

mpi portgroup: Add documentation. Add option to make MPI default but not required.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/mpi-1.0.tcl

    r137405 r142438  
    3636#
    3737#   PortGroup               mpi 1.0
     38#
     39# Available procedures:
     40# proc mpi_active_variant_name {depspec}
     41#   Returns the name of the active MPI variant of a dependency.
     42# proc mpi_variant_name {}
     43#   Returns the name of the active MPI variant of this port.
     44# proc mpi.enforce_variant {args}
     45#   Raise an error if the dependency does not have the same MPI variant
     46#   as this port. Also enforces that the dependency has the same C variant.
     47# proc mpi_variant_isset {}
     48#   Whether an MPI variant has been set.
     49# proc mpi.setup {args}
     50#   Creates MPI variants.
     51#   Available arguments: "require" means an MPI variant must be set. "-mpich", "-openmpi", etc.
     52#   means remove this variant from the list. All of the arguments for compilers.setup are available
     53#   too and will be passed to that procedure. "default" means an MPI variant (mpich) will be
     54#   set as a default variant.
    3855
    3956PortGroup compilers 1.0
     
    4158default mpi.variants {}
    4259default mpi.require 0
     60default mpi.default 0
    4361default mpi.required_variants {}
    4462
     
    232250            require {
    233251                set mpi.require 1
     252                set mpi.default 1
     253            }
     254            "default" {
     255                set mpi.default 1
    234256            }
    235257            require_fortran {
     
    289311    }
    290312
    291     if {${mpi.require} && ![mpi_variant_isset]} {
     313    if {${mpi.default} && ![mpi_variant_isset]} {
    292314        default_variants-append +mpich
    293315    }
    294 
    295316}
    296317
Note: See TracChangeset for help on using the changeset viewer.