Missing SSE include

Report any bugs here and we'll post fixes

Moderators: Sascha Willems, Thomas

Missing SSE include

Postby aitzolmuelas » Thu Apr 30, 2015 9:52 am

dgTypes.h around line 132 needs to include
Code: Select all
#include <smmintrin.h>

for
Code: Select all
_mm_dp_ps

Also I think that's only for SSE 4.2 and above (i guess mostly supported nowadays, but i don't know if you want to have some flag to include it separately).
aitzolmuelas
 
Posts: 78
Joined: Wed Mar 25, 2015 1:10 pm

Re: Missing SSE include

Postby Julio Jerez » Thu Apr 30, 2015 10:21 am

there is a define, that can be place on eh command line.
I was experimenting and I enabled it in the dgType.h and commited by mistake.
you can comented it out and will resul to use had

I would think that by now almost all pcs have support sse 4.2 am Iwrong assuming this?
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Missing SSE include

Postby aitzolmuelas » Thu Apr 30, 2015 11:18 am

I just checked with the IT guy at work and all of our pcs do have SSE 4.2, i think it's just first generation i3/i5 that do not have it (and for those probably all of SSE can be disabled)
aitzolmuelas
 
Posts: 78
Joined: Wed Mar 25, 2015 1:10 pm

Re: Missing SSE include

Postby Julio Jerez » Thu Apr 30, 2015 11:47 am

I am guessing that people with older generation core are not going to be playing apply using high physics. you can always have an installer

I have not even test if the dot product is better or not, I would just comment out the define. I check it by mistake it has always being in a #ifdef #end block.
IT is meant to be a compiler command line
Julio Jerez
Moderator
Moderator
 
Posts: 12249
Joined: Sun Sep 14, 2003 2:18 pm
Location: Los Angeles

Re: Missing SSE include

Postby aitzolmuelas » Mon May 04, 2015 4:54 am

Ok, i saw the define DG_SSE4_INSTRUCTIONS_SET now :P
Anyways, as I mentioned in Windows
Code: Select all
#include <intrin.h>

already includes everything needes, but on posix
Code: Select all
#if (defined (_POSIX_VER) || defined (_POSIX_VER_64) || defined (_MINGW_32_VER) || defined (_MINGW_64_VER))
   #include <unistd.h>
   #include <assert.h>
   extern "C"
   {
      // for SSE3 and up
      #include <pmmintrin.h>
      #include <emmintrin.h>
      #include <mmintrin.h>
   }
#endif

the header for SSE4 is missing
Code: Select all
#include <smmintrin.h>
aitzolmuelas
 
Posts: 78
Joined: Wed Mar 25, 2015 1:10 pm


Return to Bugs and Fixes

Who is online

Users browsing this forum: No registered users and 3 guests

cron