<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi all,
<div>I wanted to evaluate the Vc library. Got some build errors in </div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">In file included from /Users/etijskens/Downloads/vc-vc/build/trigonometric_AVX+XOP+FMA4.cpp:20:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:32:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">In file included from /Users/etijskens/Downloads/vc-vc/avx/vector.h:23:</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><b>/Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:582:5:
</b><span style="color: #c33720"><b>error: </b></span><b>use of undeclared identifier '_mm_comlt_epu32'</b></div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"> AVX_TO_SSE_2(comlt_epu32)</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(52, 189, 38);">
<b> ^</b></div>
</div>
<div style="margin: 0px;">
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;">(Similar errors from the three succeeding lines as well)</div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;">I checked the CMake files for any variables that could solve the problem. As suggested in the documentation (portability issues/compiler flags) I added </div>
<div>
<div style="font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0);"><span style="font-family: Menlo; font-size: 11px;">CMAKE_CXX_FLAGS</span><span style="font-family: Menlo; font-size: 11px;"> -march=corei7-avx -mavx</span></div>
<div style="font-size: 12px; font-family: Helvetica; color: rgb(0, 0, 0);"><span style="font-family: Menlo; font-size: 11px;"><br>
</span></div>
<div>The errors go away when i #undef <span style="font-family: Monaco; color: rgb(52, 189, 38); font-size: 11px;">VC_IMPL_XOP </span>just before <b style="font-family: Menlo; font-size: 11px;">/Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:581</b></div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;"><b style="font-family: Menlo; font-size: 11px;"><br>
</b></div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;">As far as i know XOP is for AMD cpus and should not be activated in my build. CMake detects </div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;">TARGET_ARCHITECTURE=ivy-bridge</div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;"><br>
</div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;">i am compiling on a machine with <span style="line-height: 23px;">Intel® Core™ i7-3615QM Processor and Mac OS X (maverick) </span>using the clang 5.0 compiler<span style="line-height: 23px;">.</span></div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;"><span style="line-height: 23px;">I am not sure that </span></div>
</div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;">
<div><span style="line-height: 23px;">a) the problem is correctly solved by undefining </span><span style="color: rgb(52, 189, 38); font-family: Monaco; font-size: 11px;">VC_IMPL_XOP</span></div>
<div>
<div><span style="line-height: 23px;">b) there is not a more elegant solution</span></div>
</div>
<div><span style="line-height: 23px;">Any help is very much appreciated.</span></div>
<div><span style="line-height: 23px;">bert</span></div>
</div>
<div style="color: rgb(0, 0, 0); font-size: 12px; font-family: Helvetica;"></div>
</div>
</body>
</html>