|
|
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » Eigen updated
|
|
Re: Eigen updated [message #54025 is a reply to message #54020] |
Fri, 22 May 2020 09:25   |
 |
koldo
Messages: 3435 Registered: August 2008
|
Senior Veteran |
|
|
Dear Sender
Some changes have been included in last version, but not all.
I am overwhelmed, vectorization and intrinsics are out of my knowledge.
It is like if including #include <smmintrin.h> in an include (Core/Blit.h), hides __m128* unions. However I do not know why. Maybe caused by name mangling?
Replacing #ifdef CPU_X86 with #if defined(CPU_X86) && defined(__SSE2__) just avoids the problem by avoiding #include <smmintrin.h>.
Maybe these new options in Core/Blit.h require adding new compiler flags?
Best regards
Iñaki
[Updated on: Fri, 22 May 2020 09:26] Report message to a moderator
|
|
|
|
|
Re: Eigen updated [message #54037 is a reply to message #54030] |
Fri, 22 May 2020 11:42   |
Sender Ghost
Messages: 301 Registered: November 2008
|
Senior Member |
|
|
koldo wrote on Fri, 22 May 2020 08:23Quote:Possible to fix Eigen build issue, if place usage of intrinsic(s) (e.g. in uppsrc/Core) inside of C++ (*.cpp) instead of header (*.h) files. Maybe there are other methods. Yes, that would solve it all.
The problem of this is that inline functions have to be in .h, and Core/Blit.h includes inline void memsetd().
Looks like, the Eigen build issue with <smmintrin.h> include was because of its include inside of (Upp) namespace.
I attached newer patch in Redmine #2035. But if there is a need to support CPUs without SSE2 instructions, there is a need to provide other implementations, based on __SSE2__ (or other) check, I guess.
[Updated on: Fri, 22 May 2020 11:54] Report message to a moderator
|
|
|
|
Re: Eigen updated [message #54071 is a reply to message #54041] |
Sat, 30 May 2020 00:10   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
This is me again with bad news.
I tried to compile Eigen_demo for Windows using CLANG (actually, I compiled on Linux using wine), and CLANG never fished compilation. I guess this is a bug with CLANG shipped with Upp.
Or it is a bug with Eigen_demo itself ...
Command used for compilation:
wine umk reference Eigen_demo CLANG -bus
Regards,
Novo
|
|
|
Re: Eigen updated [message #54076 is a reply to message #54071] |
Sat, 30 May 2020 11:32   |
 |
koldo
Messages: 3435 Registered: August 2008
|
Senior Veteran |
|
|
Dear Novo
I cannot reproduce your problem in my W10, using CLANG from U++ and MSVC, both 32 and 64 bits.
Anyway, now it is just updated the very last version, with tiny changes. Please check it just in case, and send the error messages.
Thank you for your support.
Best regards
Iñaki
[Updated on: Sat, 30 May 2020 11:33] Report message to a moderator
|
|
|
Re: Eigen updated [message #54089 is a reply to message #54076] |
Sun, 31 May 2020 07:05   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
I was able to compile it in Release configuration.
$ wine umk reference Eigen_demo CLANGx64 -brus
----- Core ( CLANG SHARED BLITZ WIN32 ) (1 / 4)
----- plugin/Eigen ( CLANG SHARED BLITZ WIN32 ) (2 / 4)
----- plugin/z ( CLANG SHARED BLITZ WIN32 ) (3 / 4)
----- Eigen_demo ( MAIN CLANG SHARED BLITZ WIN32 ) (4 / 4)
BLITZ: eigen_demo.cpp non-linear.cpp fft.cpp
Eigen_demo: 3 file(s) built in (1:37.71), 32570 msecs / file
Linking...
Z:\home\ssg\.local\soft\bb-worker\worker\wine-upp\build\.cache\upp.out\CLANGx64.Blitz.Shared\Eigen_demo.exe (2488320 B) linked in (0:00.69)
It takes a minute and a half.
I never saw it finishing compilation in Debug.
TheIde and Clang are from March 3-rd 2020. I guess this is a release.
Tested on Linux with wine.
Regards,
Novo
[Updated on: Sun, 31 May 2020 07:05] Report message to a moderator
|
|
|
Re: Eigen updated [message #54093 is a reply to message #54089] |
Sun, 31 May 2020 20:44  |
 |
koldo
Messages: 3435 Registered: August 2008
|
Senior Veteran |
|
|
Dear Novo
I have never used wine with U++. However, I will try to run it all to try to reproduce your problem.
On the other side, I can promise that it works everyday in tenths of computers with W10.
Best regards
Iñaki
|
|
|
Goto Forum:
Current Time: Sun May 11 19:52:34 CEST 2025
Total time taken to generate the page: 0.02913 seconds
|
|
|