2013-08-31 01:09:24 +02:00
|
|
|
# Created by: trasz <trasz@pin.if.uz.zgora.pl>
|
2006-11-20 22:26:53 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= imb
|
|
|
|
PORTVERSION= 3.0
|
Update to libmpc version 1.0.1 which brings the following fixes:
- Switched to automake 1.11.6, see CVE-2012-3386.
- #14669: Fixed extraction of CC from gmp.h.
- Fixed case of intermediate zero real or imaginary part in mpc_fma,
found by hydra with GMP_CHECK_RANDOMIZE=1346362345.
This is on top of the following changes from version 1.0
- Licence change towards LGPLv3+ for the code and GFDLv1.3+ (with no
invariant sections) for the documentation.
- 100% of all lines are covered by tests
- Renamed functions
. mpc_mul_2exp to mpc_mul_2ui
. mpc_div_2exp to mpc_div_2ui
- 0^0, which returned (NaN,NaN) previously, now returns (1,+0).
- Removed compatibility with K&R compilers, which was untestable due
to lack of such compilers.
- New functions
. mpc_log10
. mpc_mul_2si, mpc_div_2si
- Speed-ups
. mpc_fma
- Bug fixes
. mpc_div and mpc_norm now return a value indicating the effective
rounding direction, as the other functions.
. mpc_mul, mpc_sqr and mpc_norm now return correct results even if
there are over- or underflows during the computation.
. mpc_asin, mpc_proj, mpc_sqr: Wrong result when input variable has
infinite part and equals output variable is corrected.
. mpc_fr_sub: Wrong return value for imaginary part is corrected.
Convert to the new LIB_DEPENDS standard and remove hard-coded
.so versions from a couple of dependent ports.
Bump PORTREVISIONS of all dependent ports.
PR: 183141
Approved by: portmgr (bdrewery)
2013-10-26 02:52:33 +02:00
|
|
|
PORTREVISION= 5
|
2006-11-20 22:26:53 +01:00
|
|
|
CATEGORIES= benchmarks parallel
|
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL} \
|
|
|
|
http://cache-www.intel.com/cd/00/00/32/71/
|
|
|
|
MASTER_SITE_SUBDIR= itetcu
|
|
|
|
DISTNAME= 327191_327191
|
|
|
|
EXTRACT_SUFX= .gz
|
|
|
|
|
2010-10-25 22:09:06 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-11-20 22:26:53 +01:00
|
|
|
COMMENT= Intel MPI Benchmark
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/IMB_3.0/src/
|
2013-11-18 14:45:44 +01:00
|
|
|
USES= dos2unix gmake
|
2006-11-20 22:26:53 +01:00
|
|
|
MAKEFILE= make_mpich
|
|
|
|
ALL_TARGET= all
|
|
|
|
# Intel hardcodes -O3 in make_mpich. Replacing it with system defaults
|
|
|
|
# would make it impossible to compare benchmark results with other systems.
|
|
|
|
# By putting it here we make it easier for somebody to change it, if they
|
|
|
|
# _really_ want it.
|
|
|
|
CFLAGS= -O3
|
|
|
|
|
|
|
|
# Attention: -DCHECK results are not valid as real benchmark data! Don't
|
|
|
|
# forget to deactivate DCHECK and recompile in order to get proper results.
|
|
|
|
.if defined(CHECK_RESULTS)
|
|
|
|
CFLAGS+= -DCHECK
|
|
|
|
.endif
|
|
|
|
|
2014-02-10 01:02:26 +01:00
|
|
|
MAKE_JOBS_UNSAFE=yes
|
|
|
|
|
2013-09-20 17:52:44 +02:00
|
|
|
NO_STAGE= yes
|
2006-11-20 22:26:53 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if exists(${LOCALBASE}/mpi/openmpi/bin/mpirun)
|
|
|
|
WITH_OPENMPI= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_OPENMPI)
|
2013-11-03 19:34:46 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/mpi/openmpi/lib/libmpi.so:${PORTSDIR}/net/openmpi
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/mpi/openmpi/bin/mpirun:${PORTSDIR}/net/openmpi
|
|
|
|
MAKE_ENV+= MPI_HOME=${LOCALBASE}/mpi/openmpi
|
2006-11-20 22:26:53 +01:00
|
|
|
.else
|
2013-11-03 19:34:46 +01:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/bin/mpicc:${PORTSDIR}/net/mpich2
|
|
|
|
RUN_DEPENDS+= ${LOCALBASE}/bin/mpirun:${PORTSDIR}/net/mpich2
|
|
|
|
MAKE_ENV+= MPI_HOME=${LOCALBASE}
|
2006-11-20 22:26:53 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2014-01-03 16:34:13 +01:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2006-11-20 22:26:53 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/IMB_3.0/doc/IMB_ug-3.0.pdf ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/IMB_3.0/license/license.txt ${DOCSDIR}
|
|
|
|
${INSTALL_MAN} ${WRKDIR}/IMB_3.0/license/use-of-trademark-license.txt ${DOCSDIR}
|
|
|
|
.endif
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/IMB-EXT ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/IMB-IO ${PREFIX}/bin
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/IMB-MPI1 ${PREFIX}/bin
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|