svn commit: r554298 - head/math/onednn
Yuri Victorovich
yuri at FreeBSD.org
Fri Nov 6 15:20:07 UTC 2020
Author: yuri
Date: Fri Nov 6 15:20:06 2020
New Revision: 554298
URL: https://svnweb.freebsd.org/changeset/ports/554298
Log:
math/onednn: Force the -O3 optimization level because -O2 exposes a clang bug
Modified:
head/math/onednn/Makefile
Modified: head/math/onednn/Makefile
==============================================================================
--- head/math/onednn/Makefile Fri Nov 6 14:21:15 2020 (r554297)
+++ head/math/onednn/Makefile Fri Nov 6 15:20:06 2020 (r554298)
@@ -3,6 +3,7 @@
PORTNAME= onednn
DISTVERSIONPREFIX= v
DISTVERSION= 1.7
+PORTREVISION= 1
CATEGORIES= math # machine-learning
MAINTAINER= yuri at FreeBSD.org
@@ -30,6 +31,8 @@ OPENMP_BROKEN_OFF= still requires omp.h, see https://g
CXXFLAGS_amd64= -msse4.1
CXXFLAGS_i386= -msse4.1
+
+CXXFLAGS:= ${CXXFLAGS:S/-O2/-O3/} # clang writes wrong binary code when -O2 optimization is used and one testcase is failing, see https://github.com/oneapi-src/oneDNN/issues/873#issuecomment-722778910
.include <bsd.port.options.mk>
More information about the svn-ports-all
mailing list