diff options
author | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-09-05 13:46:37 +0200 |
---|---|---|
committer | Piotr Kubaj <pkubaj@FreeBSD.org> | 2023-09-05 23:46:04 +0200 |
commit | 72ba4796395340f522176e175ba77b032e5b24d5 (patch) | |
tree | 7c7adeda0fb992a17b666e44dee7ed78a29456ac /misc | |
parent | 6ba4097fb6408762693748bd5f8a9bb1e22ecbab (diff) | |
download | freebsd-ports-72ba4796395340f522176e175ba77b032e5b24d5.zip |
misc/opennn: fix build on powerpc64
/usr/bin/c++ -D__Cpp11__ -Dopennn_EXPORTS -fopenmp=libomp -O2 -pipe -fstack-protector-strong -fno-strict-aliasing -DNDEBUG -std=gnu++17 -fPIC -MD -MT opennn/CMakeFiles/opennn.dir/adaptive_moment_estimation.cpp.o -MF opennn/CMakeFiles/opennn.dir/adaptive_moment_estimation.cpp.o.d -o opennn/CMakeFiles/opennn.dir/adaptive_moment_estimation.cpp.o -c /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/adaptive_moment_estimation.cpp
In file included from /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/adaptive_moment_estimation.cpp:9:
In file included from /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/adaptive_moment_estimation.h:32:
In file included from /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/loss_index.h:23:
In file included from /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/config.h:34:
In file included from /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/../eigen/unsupported/Eigen/CXX11/Tensor:14:
In file included from /wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/../eigen/unsupported/Eigen/CXX11/../../../Eigen/Core:210:
/wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/../eigen/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/AltiVec/PacketMath.h:1345:32: error: use of undeclared identifier 'vec_sqrt'; did you mean 'vec_rsqrt'?
BF16_TO_F32_UNARY_OP_WRAPPER(vec_sqrt, a);
^~~~~~~~
vec_rsqrt
/wrkdirs/usr/ports/misc/opennn/work/opennn-6.0.4/opennn/../eigen/unsupported/Eigen/CXX11/../../../Eigen/src/Core/arch/AltiVec/PacketMath.h:1302:22: note: expanded from macro 'BF16_TO_F32_UNARY_OP_WRAPPER'
Packet4f op_even = OP(a_even);\
^
/usr/lib/clang/14.0.5/include/altivec.h:8501:34: note: 'vec_rsqrt' declared here
static vector float __ATTRS_o_ai vec_rsqrt(vector float __a) {
Diffstat (limited to 'misc')
-rw-r--r-- | misc/opennn/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/opennn/Makefile b/misc/opennn/Makefile index ac7c2ef49f1e..eeb1be32033e 100644 --- a/misc/opennn/Makefile +++ b/misc/opennn/Makefile @@ -23,6 +23,7 @@ CMAKE_OFF= OpenNN_BUILD_EXAMPLES OpenNN_BUILD_TESTS CMAKE_TESTING_ON= OpenNN_BUILD_TESTS # some tests fail, see https://github.com/Artelnics/opennn/issues/229 CMAKE_TESTING_TARGET= tests +CXXFLAGS_powerpc64= -mvsx LDFLAGS+= -pthread LDFLAGS_powerpc= -latomic |