[Slackbuilds-users] sse2 optimisation

Patrick J. Volkerding volkerdi at slackware.com
Sat Jun 26 16:49:43 UTC 2010


On 06/26/2010 07:58 AM, David Spencer wrote:
> Greetings SlackPeople, may I ask your advice?
>
> I'm doing a SlackBuild for Luminance HDR.  Its compiler flags assume
> that SSE2 instructions are available.  That's a bad assumption, but
> it's easy to make it configurable with a variable SSE2=yes|no and a
> note in the README.
>
> So, here's my question.  Should the SlackBuild's default be SSE2=yes,
> or SSE2=no?  There are three obvious choices.

What about something like this?

if grep -wq sse2 /proc/cpuinfo ; then
   SSE2=yes
else
   SSE2=no
fi

Just a thought.


More information about the SlackBuilds-users mailing list