Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Mar 2015 11:31:11 +0000 (UTC)
From:      Dmitry Sivachenko <demon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r380683 - head/math/openblas
Message-ID:  <201503071131.t27BVBiu092373@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: demon
Date: Sat Mar  7 11:31:11 2015
New Revision: 380683
URL: https://svnweb.freebsd.org/changeset/ports/380683
QAT: https://qat.redports.org/buildarchive/r380683/

Log:
  Add AVX2 option;
  Require openmp-compliant compiler if OPENMP option is selected.
  
  Submitted by:	maintainer

Modified:
  head/math/openblas/Makefile

Modified: head/math/openblas/Makefile
==============================================================================
--- head/math/openblas/Makefile	Sat Mar  7 10:57:50 2015	(r380682)
+++ head/math/openblas/Makefile	Sat Mar  7 11:31:11 2015	(r380683)
@@ -36,12 +36,13 @@ PLIST_FILES=	${OPENBLAS_FILES:S|^|lib/|}
 
 WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME}
 
-OPTIONS_DEFINE=		DYNAMIC_ARCH INTERFACE64 OPENMP AVX
+OPTIONS_DEFINE=		DYNAMIC_ARCH INTERFACE64 OPENMP AVX AVX2
 
 DYNAMIC_ARCH_DESC=	Support multiple CPU types on i386 and amd64
 INTERFACE64_DESC=	Use 8 byte integers on 64-bit architectures
 OPENMP_DESC=		Use OpenMP for threading
 AVX_DESC=		Support Advanced Vector Extensions (AVX)
+AVX2_DESC=		Support Advanced Vector Extensions 2 (AVX2)
 
 .if defined(PACKAGE_BUILDING)
 OPTIONS_DEFAULT=	DYNAMIC_ARCH
@@ -74,6 +75,7 @@ BUILDFLAGS+=	INTERFACE64=1
 .endif
 
 .if ${PORT_OPTIONS:MOPENMP}
+USES+=		compiler:openmp
 BUILDFLAGS+=	USE_OPENMP=1
 .endif
 
@@ -86,6 +88,10 @@ BUILDFLAGS+=	QUAD_PRECISION=1
 BUILDFLAGS+=	NO_AVX=1
 .endif
 
+.if ! ${PORT_OPTIONS:MAVX2}
+BUILDFLAGS+=	NO_AVX2=1
+.endif
+
 post-extract:
 	cd ${DISTDIR}/${DIST_SUBDIR} ; \
 	${CP} ${LARGE_FILE} ${TIMING_FILE} ${WRKSRC}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201503071131.t27BVBiu092373>