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$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name hpl |
---|
7 | version 2.1 |
---|
8 | categories science |
---|
9 | platforms darwin |
---|
10 | license BSD |
---|
11 | maintainers gmail.com:dstrubbe |
---|
12 | |
---|
13 | description High Performance Computing Linpack Benchmark |
---|
14 | long_description See how your machine compares to the TOP500! \ |
---|
15 | HPL is a software package that solves a (random) dense linear \ |
---|
16 | system in double precision (64 bits) arithmetic on \ |
---|
17 | distributed-memory computers. It can thus be regarded as a \ |
---|
18 | portable as well as freely available implementation of the \ |
---|
19 | High Performance Computing Linpack Benchmark. |
---|
20 | homepage http://www.netlib.org/benchmark/hpl |
---|
21 | master_sites ${homepage} |
---|
22 | |
---|
23 | checksums rmd160 4d4a981e16ca12d52c31d5f5c9557bed01616081 \ |
---|
24 | sha156 460f7f36cc97a1a1fcc60e43d5833e6efb0aa03c |
---|
25 | |
---|
26 | #variant threads? |
---|
27 | |
---|
28 | # patch enables parallel build |
---|
29 | patchfiles patch-Makefile.diff |
---|
30 | |
---|
31 | use_configure no |
---|
32 | |
---|
33 | pre-build { |
---|
34 | file copy ${worksrcpath}/setup/Make.FreeBSD_PIV_CBLAS ${worksrcpath}/Make.macos |
---|
35 | } |
---|
36 | |
---|
37 | build.args ARCH=MacOS TOPdir=${worksrcpath} MPlib= |
---|
38 | build.target all-j arch=macos |
---|
39 | use_parallel_build yes |
---|
40 | |
---|
41 | test.run yes |
---|
42 | |
---|
43 | destroot { |
---|
44 | xinstall ${worksrcpath}/bin/macos/xhpl ${destroot}${prefix}/bin/ |
---|
45 | xinstall -d ${destroot}${prefix}/share/hpl |
---|
46 | xinstall ${worksrcpath}/bin/macos/HPL.dat ${destroot}${prefix}/share/hpl/ |
---|
47 | xinstall ${worksrcpath}/TUNING ${destroot}${prefix}/share/hpl/ |
---|
48 | } |
---|
49 | |
---|
50 | if {![variant_isset mpich]} { |
---|
51 | default_variants +openmpi |
---|
52 | } |
---|
53 | |
---|
54 | if {![variant_isset atlas]} { |
---|
55 | default_variants +accelerate |
---|
56 | } |
---|
57 | |
---|
58 | variant openmpi conflicts mpich description {Build with OpenMPI} { |
---|
59 | depends_lib-append port:openmpi |
---|
60 | build.args-append CC=${prefix}/bin/openmpicc \ |
---|
61 | LINKER=${prefix}/bin/openmpicc |
---|
62 | test.cmd cd bin/macos && ${prefix}/bin/openmpirun -n 4 ./xhpl |
---|
63 | } |
---|
64 | |
---|
65 | variant mpich conflicts openmpi description {Build with MPICH} { |
---|
66 | depends_lib-append path:bin/mpicc:mpich |
---|
67 | build.args-append CC=${prefix}/bin/mpicc \ |
---|
68 | LINKER=${prefix}/bin/mpicc |
---|
69 | test.cmd cd bin/macos && ${prefix}/bin/openmpirun -n 4 ./xhpl |
---|
70 | } |
---|
71 | |
---|
72 | variant atlas conflicts accelerate description {Use ATLAS for BLAS library} { |
---|
73 | depends_lib-append port:atlas |
---|
74 | build.args-append LAlib="${prefix}/lib/libsatlas.dylib" |
---|
75 | } |
---|
76 | |
---|
77 | variant accelerate conflicts atlas description {Use Accelerate for BLAS library} { |
---|
78 | build.args-append LAlib="/usr/lib/libblas.dylib" |
---|
79 | } |
---|
80 | |
---|
81 | livecheck.type regex |
---|
82 | livecheck.url [lindex ${master_sites} 0] |
---|
83 | livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix} |
---|