Re: [ros-users] Question about cmake and SSE optimizations

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Jose Gonzalez
Date:  
To: Radu Bogdan Rusu, ros-users
Subject: Re: [ros-users] Question about cmake and SSE optimizations
Thanks for the comments?

What about check_cxx_compiler_flag("-msse2" COMPILER_SUPPORT_SSE2)?
Have you ever tried it?

On Tue, Mar 23, 2010 at 12:16 PM, Radu Bogdan Rusu
<> wrote:
> Depending on what compiler and cpu you use, some of these flags might be already turned on by default. You can check
> that using:
>
> $ gcc -Q -O3 --help=target
>
> for example.
>
> Other than that, we don't have a proper way to enable/disable different SSE optimizations for now. Most ROS packages
> cram a add_definitions ("-msse... etc") in their CMakeLists.txt.
>
> Patches to make this more standard across multiple platforms and enable/disable SSE1-5 automatically would be great!
>
> Cheers,
> Radu.
>
> Jose Gonzalez wrote:
>> Hi,
>>
>> Doing some experiments in the past with OpenCV (linux/g++) I realized
>> that there is a significant performance difference between the
>> versions compiled with autoconf and cmake. Digging in the compilation
>> scripts I came to the conclusion that the only extra flags that were
>> added by the autoconf scripts were the SSE optimizations (and openMP).
>>
>> Talking about the SSE optimizations, I can see how ROS sets the flags
>> in a similar way. When the detected platform is i686, all the SSE
>> optimizations are disabled by default (there is a comment "SSE/SSE2
>> might probably be not available for some old AMD or VIA processors").
>> Before finding out a solution by myself I'd like to ask the list if
>> somebody knows a standard way of testing for SSE optimizations in
>> cmake.
>>
>> Thanks,
>> Jose
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> ros-users mailing list
>>
>> https://lists.sourceforge.net/lists/listinfo/ros-users
>> _______________________________________________
>> ros-users mailing list
>>
>> https://code.ros.org/mailman/listinfo/ros-users
>
> --
> | Radu Bogdan Rusu | http://rbrusu.com/
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>