source: trunk/dports/science/hpl/Portfile

Last change on this file was 150558, checked in by dstrubbe@…, 14 months ago

hpl: Remove obsolete comment.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 150558 2016-07-21 17:18:43Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           mpi 1.0
6PortGroup           linear_algebra 1.0
7
8name                hpl
9version             2.2
10revision            0
11categories          science
12platforms           darwin
13license             BSD
14maintainers         dstrubbe
15
16description         High Performance Computing Linpack Benchmark
17long_description    See how your machine compares to the TOP500! \
18                    HPL is a software package that solves a (random) dense linear \
19                    system in double-precision (64-bit) arithmetic on \
20                    distributed-memory computers. It can thus be regarded as a \
21                    portable as well as freely available implementation of the \
22                    High Performance Computing Linpack Benchmark.
23homepage            http://www.netlib.org/benchmark/hpl
24master_sites        ${homepage}
25
26checksums           rmd160  b25fc91dcbd82f43b6a149af9b4e2c5cd0f60c3e \
27                    sha156  ac7534163a09e21a5fa763e4e16dfc119bc84043f6e6a807aba666518f8df440
28
29mpi.setup           require -fortran
30linalg.setup        blas_only
31
32#variant threads?
33
34# patch enables parallel build
35patchfiles          patch-Makefile.diff
36
37use_configure       no
38
39pre-build {
40    file copy ${worksrcpath}/setup/Make.FreeBSD_PIV_CBLAS ${worksrcpath}/Make.macos
41}
42
43build.args          ARCH=MacOS TOPdir=${worksrcpath} MPlib=
44build.target        all-j arch=macos
45use_parallel_build  yes
46
47test.run  yes
48
49destroot {
50    xinstall ${worksrcpath}/bin/macos/xhpl ${destroot}${prefix}/bin/
51    xinstall -d ${destroot}${prefix}/share/hpl
52    xinstall ${worksrcpath}/bin/macos/HPL.dat ${destroot}${prefix}/share/hpl/
53    xinstall ${worksrcpath}/TUNING ${destroot}${prefix}/share/hpl/
54}
55
56pre-build {
57    build.args-append      CC=${mpi.cc} LINKER=${mpi.cc} LAlib="${linalglib}"
58}
59
60pre-test {
61    if {![catch {sysctl hw.ncpu} result]} {
62        set njobs $result
63    } else {
64        set njobs 4
65    }
66
67    test.cmd cd bin/macos && ${mpi.exec} -n ${njobs} ./xhpl
68}
69
70pre-fetch {
71    notes    "Execute as: cd ${prefix}/share/hpl && ${mpi.exec} -n 4 xhpl"
72}
73
74livecheck.type      regex
75livecheck.url       [lindex ${master_sites} 0]
76livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.