[108658] trunk/dports/science
macsforever2000 at macports.org
macsforever2000 at macports.org
Mon Jul 29 15:36:46 PDT 2013
Revision: 108658
https://trac.macports.org/changeset/108658
Author: macsforever2000 at macports.org
Date: 2013-07-29 15:36:46 -0700 (Mon, 29 Jul 2013)
Log Message:
-----------
hpl: New port. (#39845)
Added Paths:
-----------
trunk/dports/science/hpl/
trunk/dports/science/hpl/Portfile
trunk/dports/science/hpl/files/
trunk/dports/science/hpl/files/patch-Makefile.diff
Added: trunk/dports/science/hpl/Portfile
===================================================================
--- trunk/dports/science/hpl/Portfile (rev 0)
+++ trunk/dports/science/hpl/Portfile 2013-07-29 22:36:46 UTC (rev 108658)
@@ -0,0 +1,83 @@
+# -*- 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
+# $Id$
+
+PortSystem 1.0
+
+name hpl
+version 2.1
+categories science
+platforms darwin
+license BSD
+maintainers gmail.com:dstrubbe
+
+description High Performance Computing Linpack Benchmark
+long_description See how your machine compares to the TOP500! \
+ HPL is a software package that solves a (random) dense linear \
+ system in double precision (64 bits) arithmetic on \
+ distributed-memory computers. It can thus be regarded as a \
+ portable as well as freely available implementation of the \
+ High Performance Computing Linpack Benchmark.
+homepage http://www.netlib.org/benchmark/hpl
+master_sites ${homepage}
+
+checksums rmd160 4d4a981e16ca12d52c31d5f5c9557bed01616081 \
+ sha156 460f7f36cc97a1a1fcc60e43d5833e6efb0aa03c
+
+#variant threads?
+
+# patch enables parallel build
+patchfiles patch-Makefile.diff
+
+use_configure no
+
+pre-build {
+ file copy ${worksrcpath}/setup/Make.FreeBSD_PIV_CBLAS ${worksrcpath}/Make.macos
+}
+
+build.args ARCH=MacOS TOPdir=${worksrcpath} MPlib=
+build.target all-j arch=macos
+use_parallel_build yes
+
+test.run yes
+
+destroot {
+ xinstall ${worksrcpath}/bin/macos/xhpl ${destroot}${prefix}/bin/
+ xinstall -d ${destroot}${prefix}/share/hpl
+ xinstall ${worksrcpath}/bin/macos/HPL.dat ${destroot}${prefix}/share/hpl/
+ xinstall ${worksrcpath}/TUNING ${destroot}${prefix}/share/hpl/
+}
+
+if {![variant_isset mpich]} {
+ default_variants +openmpi
+}
+
+if {![variant_isset atlas]} {
+ default_variants +accelerate
+}
+
+variant openmpi conflicts mpich description {Build with OpenMPI} {
+ depends_lib-append port:openmpi
+ build.args-append CC=${prefix}/bin/openmpicc \
+ LINKER=${prefix}/bin/openmpicc
+ test.cmd cd bin/macos && ${prefix}/bin/openmpirun -n 4 ./xhpl
+}
+
+variant mpich conflicts openmpi description {Build with MPICH} {
+ depends_lib-append path:bin/mpicc:mpich
+ build.args-append CC=${prefix}/bin/mpicc \
+ LINKER=${prefix}/bin/mpicc
+ test.cmd cd bin/macos && ${prefix}/bin/openmpirun -n 4 ./xhpl
+}
+
+variant atlas conflicts accelerate description {Use ATLAS for BLAS library} {
+ depends_lib-append port:atlas
+ build.args-append LAlib="${prefix}/lib/libsatlas.dylib"
+}
+
+variant accelerate conflicts atlas description {Use Accelerate for BLAS library} {
+ build.args-append LAlib="/usr/lib/libblas.dylib"
+}
+
+livecheck.type regex
+livecheck.url [lindex ${master_sites} 0]
+livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
Property changes on: trunk/dports/science/hpl/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/science/hpl/files/patch-Makefile.diff
===================================================================
--- trunk/dports/science/hpl/files/patch-Makefile.diff (rev 0)
+++ trunk/dports/science/hpl/files/patch-Makefile.diff 2013-07-29 22:36:46 UTC (rev 108658)
@@ -0,0 +1,12 @@
+--- Makefile.orig 2013-07-23 22:58:59.000000000 -0400
++++ Makefile 2013-07-23 22:59:28.000000000 -0400
+@@ -52,6 +52,9 @@
+ ## Targets #############################################################
+ #
+ all : install
++
++all-j :
++ $(MAKE) startup && $(MAKE) refresh && $(MAKE) build
+ #
+ # ######################################################################
+ #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130729/f3651a8d/attachment-0001.html>
More information about the macports-changes
mailing list