summaryrefslogtreecommitdiffstats
path: root/math/blacs
diff options
context:
space:
mode:
authormaho <maho@FreeBSD.org>2005-07-04 04:59:27 +0000
committermaho <maho@FreeBSD.org>2005-07-04 04:59:27 +0000
commit697b48d614a8938f5f86573e4639a975ec163629 (patch)
tree01a0f33d8233d9f58bc33fce52064eac5bdc79c8 /math/blacs
parent53c13ca1e27d1ae5d64d7dcbf4eb5442916c6d68 (diff)
downloadFreeBSD-ports-697b48d614a8938f5f86573e4639a975ec163629.zip
FreeBSD-ports-697b48d614a8938f5f86573e4639a975ec163629.tar.gz
Re-organize optimization flags so that runs much more faster
Diffstat (limited to 'math/blacs')
-rw-r--r--math/blacs/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/math/blacs/Makefile b/math/blacs/Makefile
index 85faf40..8524912 100644
--- a/math/blacs/Makefile
+++ b/math/blacs/Makefile
@@ -41,6 +41,19 @@ F77EXTRAFLAGS= -w -fno-globals -fugly-complex
USE_REINPLACE= yes
DEBUG_LEVEL= 0
+.if defined(WITH_OPTIMIZED_FLAGS)
+.if ${ARCH} == "amd64"
+FFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time
+CFLAGS+= -pipe -O3 -ffast-math -funroll-all-loops -fpeel-loops -ftracer -funswitch-loops -funit-at-a-time
+.else if ${ARCH} == "i386"
+FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
+CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -malign-double -mcpu=i686 -march=i686 -mfancy-math-387 -mpreferred-stack-boundary=3
+.else
+FFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
+CFLAGS+= -O3 -ffast-math -finline-functions -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -Wno-multichar
+.endif
+.endif
+
pre-patch:
(${CP} ${WRKSRC}/BMAKES/Bmake.MPI-LINUX ${WRKSRC}/Bmake.inc)
post-patch:
OpenPOWER on IntegriCloud