<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi mattias,
<div>i am not quite sure on the version </div>
<div>i downloaded the tar file from <a href="https://gitorious.org/vc/vc/source/ad142ee3b7e2526cb8880cc5d8e492adfdbdd6a8:">https://gitorious.org/vc/vc/source/ad142ee3b7e2526cb8880cc5d8e492adfdbdd6a8:</a> no version numbers are mentioned there.</div>
<div>the documentation that i've build says Vc 0.99.71-dev as specified in include/vc/version.h</div>
<div>is that ok?</div>
<div><br>
<div>
<div>On 18 Jan 2014, at 12:00, <<a href="mailto:vc-request@compeng.uni-frankfurt.de">vc-request@compeng.uni-frankfurt.de</a>> <<a href="mailto:vc-request@compeng.uni-frankfurt.de">vc-request@compeng.uni-frankfurt.de</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Send Vc mailing list submissions to<br>
<span class="Apple-tab-span" style="white-space:pre"></span><a href="mailto:vc@compeng.uni-frankfurt.de">vc@compeng.uni-frankfurt.de</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<span class="Apple-tab-span" style="white-space:pre"></span>https://compeng.uni-frankfurt.de/mailman/listinfo/vc<br>
or, via email, send a message with subject or body 'help' to<br>
<span class="Apple-tab-span" style="white-space:pre"></span>vc-request@compeng.uni-frankfurt.de<br>
<br>
You can reach the person managing the list at<br>
<span class="Apple-tab-span" style="white-space:pre"></span>vc-owner@compeng.uni-frankfurt.de<br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of Vc digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
  1. build error on mac osx (Tijskens Engelbert)<br>
  2. vc examples build error on mac os x (Tijskens Engelbert)<br>
  3. Re: build error on mac osx (Matthias Kretz)<br>
  4. Re: vc examples build error on mac os x (Matthias Kretz)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 17 Jan 2014 12:42:45 +0000<br>
From: Tijskens Engelbert <Engelbert.Tijskens@uantwerpen.be><br>
To: "vc@compeng.uni-frankfurt.de" <vc@compeng.uni-frankfurt.de><br>
Subject: build error on mac osx<br>
Message-ID: <083FA540-E6C4-4139-8C99-F317B3BF64B6@uantwerpen.be><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
Hi all,<br>
I wanted to evaluate the Vc library. Got some build errors in<br>
<br>
In file included from /Users/etijskens/Downloads/vc-vc/build/trigonometric_AVX+XOP+FMA4.cpp:20:<br>
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:<br>
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:32:<br>
In file included from /Users/etijskens/Downloads/vc-vc/avx/vector.h:23:<br>
/Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:582:5: error: use of undeclared identifier '_mm_comlt_epu32'<br>
   AVX_TO_SSE_2(comlt_epu32)<br>
   ^<br>
(Similar errors from the three succeeding lines as well)<br>
I checked the CMake files for any variables that could solve the problem.  As suggested in the documentation (portability issues/compiler flags) I added<br>
CMAKE_CXX_FLAGS -march=corei7-avx -mavx<br>
<br>
The errors go away when i #undef VC_IMPL_XOP just before /Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:581<br>
<br>
As far as i know XOP is for AMD cpus and should not be activated in my build. CMake  detects<br>
TARGET_ARCHITECTURE=ivy-bridge<br>
<br>
i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS X (maverick) using the clang 5.0 compiler.<br>
I am not sure that<br>
a) the problem is correctly solved by undefining VC_IMPL_XOP<br>
b) there is not a more elegant solution<br>
Any help is very much appreciated.<br>
bert<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/4b6ae908/attachment-0001.html><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Fri, 17 Jan 2014 13:15:21 +0000<br>
From: Tijskens Engelbert <Engelbert.Tijskens@uantwerpen.be><br>
To: "vc@compeng.uni-frankfurt.de" <vc@compeng.uni-frankfurt.de><br>
Subject: vc examples build error on mac os x<br>
Message-ID: <2A7204A5-D2B3-4025-B631-D13191FFC63A@uantwerpen.be><br>
Content-Type: text/plain; charset="windows-1252"<br>
<br>
dear all<br>
<br>
When building the examples the following error comes up<br>
<br>
[ 65%] Building CXX object examples/polarcoord/CMakeFiles/example_polarcoord_scalar.dir/main.cpp.o<br>
In file included from /Users/etijskens/Downloads/vc-vc/examples/polarcoord/main.cpp:26:<br>
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22:<br>
In file included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:26:<br>
In file included from /Users/etijskens/Downloads/vc-vc/scalar/vector.h:495:<br>
/Users/etijskens/Downloads/vc-vc/scalar/math.h:77:7: error: no member named 'sincos' in the global namespace; did you mean '__sincos'?<br>
   ::sincos(x.data(), &sin->data(), &cos->data());<br>
   ~~^~~~~~<br>
     __sincos<br>
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/math.h:647:29: note: '__sincos' declared here<br>
__header_always_inline void __sincos(double __x, double *__sinp, double *__cosp) {<br>
<br>
After replacing sincos with __sincos as suggested, everything builds fine, but maybe this breaks the code on other systems<br>
<br>
i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS X (maverick) using the clang 5.0 compiler.<br>
<br>
kindest regards,<br>
bert<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/7068a1d6/attachment-0001.html><br>
<br>
------------------------------<br>
<br>
Message: 3<br>
Date: Fri, 17 Jan 2014 14:59:13 +0100<br>
From: Matthias Kretz <kretz@compeng.uni-frankfurt.de><br>
To: vc@compeng.uni-frankfurt.de<br>
Subject: Re: build error on mac osx<br>
Message-ID: <1939665.DEr6CCbnEa@drazi><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Tijskens,<br>
<br>
welcome to the list! :)<br>
<br>
On Friday 17 January 2014 12:42:45 Tijskens Engelbert wrote:<br>
<blockquote type="cite">/Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:582:5: error: use of<br>
undeclared identifier '_mm_comlt_epu32' AVX_TO_SSE_2(comlt_epu32)<br>
   ^<br>
(Similar errors from the three succeeding lines as well)<br>
I checked the CMake files for any variables that could solve the problem. <br>
As suggested in the documentation (portability issues/compiler flags) I<br>
added CMAKE_CXX_FLAGS -march=corei7-avx -mavx<br>
<br>
The errors go away when i #undef VC_IMPL_XOP just before<br>
/Users/etijskens/Downloads/vc-vc/avx/intrinsics.h:581<br>
<br>
As far as i know XOP is for AMD cpus and should not be activated in my<br>
build. CMake  detects TARGET_ARCHITECTURE=ivy-bridge<br>
<br>
i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS<br>
X (maverick) using the clang 5.0 compiler. I am not sure that<br>
a) the problem is correctly solved by undefining VC_IMPL_XOP<br>
b) there is not a more elegant solution<br>
</blockquote>
<br>
I never can remember the mapping of Apples clang version to the actual clang <br>
version. The latest released version of clang is 3.4 <br>
(http://llvm.org/releases/download.html). I think clang --version should print <br>
the actual version somewhere.<br>
<br>
In any case, you are right that your system doesn't need the XOP stuff. The <br>
XOP code is compiled because the libVc library is supposed to work for any <br>
target system. Thus you can build build applications for different hosts on <br>
your machine without having to recompile libVc. But if your compiler doesn't <br>
do XOP anyway then this feature is moot. So disabling XOP support is the right <br>
way to go.<br>
<br>
We have two options to fix this:<br>
a) quick: call set(Vc_XOP_INTRINSICS_BROKEN true) in cmake/VcMacros.cmake for <br>
depending on the clang version on Apple systems<br>
b) more generic: make the -mxop compiler flag check more thorough. Right now <br>
it only tests whether the compiler barfs with the flag. But it doesn't check <br>
that with -mxop it also supports the XOP intrinsics. There's a similar check <br>
in cmake/AddCompilerFlag.cmake for -mfma already. Should be easy to copy and <br>
adjust.<br>
<br>
Cheers,<br>
Matthias<br>
<br>
-- <br>
?????????????????????????????????????????????????????????????<br>
Dipl.-Phys. Matthias Kretz<br>
<br>
Web:   http://compeng.uni-frankfurt.de/?mkretz<br>
<br>
SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc<br>
?????????????????????????????????????????????????????????????<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 198 bytes<br>
Desc: This is a digitally signed message part.<br>
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/ffecd488/attachment-0001.pgp><br>
<br>
------------------------------<br>
<br>
Message: 4<br>
Date: Fri, 17 Jan 2014 15:01:31 +0100<br>
From: Matthias Kretz <kretz@compeng.uni-frankfurt.de><br>
To: vc@compeng.uni-frankfurt.de<br>
Subject: Re: vc examples build error on mac os x<br>
Message-ID: <5095233.LvBm8Wh3h7@drazi><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I have a feeling Khouri and I fixed this before. What Vc branch did you check <br>
out? Could you try 0.8 please? 0.8 is mostly 0.7 but with a bit more freedom <br>
for MacOS and Windows fixes.<br>
<br>
Cheers,<br>
Matthias<br>
<br>
On Friday 17 January 2014 13:15:21 Tijskens Engelbert wrote:<br>
<blockquote type="cite">dear all<br>
<br>
When building the examples the following error comes up<br>
<br>
[ 65%] Building CXX object<br>
examples/polarcoord/CMakeFiles/example_polarcoord_scalar.dir/main.cpp.o In<br>
file included from<br>
/Users/etijskens/Downloads/vc-vc/examples/polarcoord/main.cpp:26: In file<br>
included from /Users/etijskens/Downloads/vc-vc/include/Vc/Vc:22: In file<br>
included from /Users/etijskens/Downloads/vc-vc/include/Vc/vector.h:26: In<br>
file included from /Users/etijskens/Downloads/vc-vc/scalar/vector.h:495:<br>
/Users/etijskens/Downloads/vc-vc/scalar/math.h:77:7: error: no member named<br>
'sincos' in the global namespace; did you mean '__sincos'?<br>
   ::sincos(x.data(), &sin->data(), &cos->data());<br>
<br>
   ~~^~~~~~<br>
     __sincos<br>
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develop<br>
er/SDKs/MacOSX10.9.sdk/usr/include/math.h:647:29: note: '__sincos' declared<br>
here __header_always_inline void __sincos(double __x, double *__sinp,<br>
double *__cosp) {<br>
<br>
After replacing sincos with __sincos as suggested, everything builds fine,<br>
but maybe this breaks the code on other systems<br>
<br>
i am compiling on a machine with Intel? Core? i7-3615QM Processor and Mac OS<br>
X (maverick) using the clang 5.0 compiler.<br>
<br>
kindest regards,<br>
bert<br>
</blockquote>
<br>
-- <br>
?????????????????????????????????????????????????????????????<br>
Dipl.-Phys. Matthias Kretz<br>
<br>
Web:   http://compeng.uni-frankfurt.de/?mkretz<br>
<br>
SIMD easy and portable: http://compeng.uni-frankfurt.de/?vc<br>
?????????????????????????????????????????????????????????????<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 198 bytes<br>
Desc: This is a digitally signed message part.<br>
URL: <http://compeng.uni-frankfurt.de/pipermail/vc/attachments/20140117/fc5a8883/attachment-0001.pgp><br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
Vc mailing list<br>
Vc@compeng.uni-frankfurt.de<br>
https://compeng.uni-frankfurt.de/mailman/listinfo/vc<br>
<br>
<br>
End of Vc Digest, Vol 15, Issue 1<br>
*********************************<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>