Ignore:
Timestamp:
May 19, 2016, 10:02:38 PM (3 years ago)
Author:
dstrubbe@…
Message:

linear_algebra port group: Proc to set that only blacs is being used.

File:
1 edited

Legend:

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

    r148817 r148843  
    3737#   PortGroup               linear_algebra 1.0
    3838#
     39#   If only BLAS and not LAPACK is used, set:
     40#   linalg.setup blas_only
     41#
    3942#   in pre-configure, a line like this may be needed:
    4043#   configure.args-append --with-blas="-L${prefix}/lib ${linalglib}"
     
    5053
    5154default linalglib ""
     55default blas_only 0
     56
     57proc linalg.setup {args} {
     58    global blas_only
     59
     60    foreach v $args {
     61        if {$v == "blas_only"} {
     62            ui_msg "arg = $v"
     63            set blas_only 1
     64        }
     65    }
     66}
    5267
    5368if {![variant_isset accelerate] && ![variant_isset atlas] && ![variant_isset openblas]} {
     
    7388    # allow OpenBLAS-devel too
    7489    depends_lib-append      path:lib/libopenblas.dylib:OpenBLAS
    75     require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
     90    if {$blas_only == 0} {
     91        require_active_variants path:lib/libopenblas.dylib:OpenBLAS lapack
     92    }
    7693    set linalglib           -lopenblas
    7794}
Note: See TracChangeset for help on using the changeset viewer.