build error on mac osx
Tijskens Engelbert
[please enable javascript to see the address]
Fri Jan 17 13:42:45 CET 2014
Hi all,
I wanted to evaluate the Vc library. Got some build errors in
In file included from /Users/etijskens/Downloads/vc-vc/build/trigonometric_AVX+XOP+FMA4.cpp:20:
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:32:
In file included from /Users/etijskens/Downloads/vc-vc/avx/vector.h:23:
/Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:582:5: error: use of undeclared identifier '_mm_comlt_epu32'
AVX_TO_SSE_2(comlt_epu32)
^
(Similar errors from the three succeeding lines as well)
I checked the CMake files for any variables that could solve the problem. As suggested in the documentation (portability issues/compiler flags) I added
CMAKE_CXX_FLAGS -march=corei7-avx -mavx
The errors go away when i #undef VC_IMPL_XOP just before /Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:581
As far as i know XOP is for AMD cpus and should not be activated in my build. CMake detects
TARGET_ARCHITECTURE=ivy-bridge
i am compiling on a machine with Intel® Core™ i7-3615QM Processor and Mac OS X (maverick) using the clang 5.0 compiler.
I am not sure that
a) the problem is correctly solved by undefining VC_IMPL_XOP
b) there is not a more elegant solution
Any help is very much appreciated.
bert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/4b6ae908/attachment.html>
More information about the Vc
mailing list